Skip to content
This repository was archived by the owner on Oct 30, 2025. It is now read-only.

Commit 09667c5

Browse files
authored
Merge pull request #90 from RonLek/user_info
[NEW] Displays online and all users for each channel
2 parents 8a51470 + 8b15ece commit 09667c5

10 files changed

Lines changed: 524 additions & 281 deletions

File tree

client/public/online.png

13.4 KB
Loading

client/src/components/ChannelInfo/index.css

Lines changed: 0 additions & 57 deletions
This file was deleted.

client/src/components/ChannelInfo/index.js

Lines changed: 0 additions & 182 deletions
This file was deleted.

client/src/components/CreateChannel/index.js

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,9 @@ Embed this room
167167
`);
168168
await axios({
169169
method: "post",
170-
url: `${rcApiDomain}/api/v1/channels.setDescription`,
170+
url: `${rcApiDomain}/api/v1/${
171+
publicChannel ? "channels" : "groups"
172+
}.setDescription`,
171173
headers: {
172174
"X-Auth-Token": Cookies.get("rc_token"),
173175
"X-User-Id": Cookies.get("rc_uid"),
@@ -223,7 +225,7 @@ Embed this room
223225
maxWidth="sm"
224226
fullWidth={true}
225227
>
226-
<DialogTitle >Create Room</DialogTitle>
228+
<DialogTitle>Create Room</DialogTitle>
227229
<DialogContent>
228230
<p className="create-dialog-description">
229231
Rooms are where your teams communicate.
@@ -260,42 +262,40 @@ Embed this room
260262
)}
261263
<br />
262264
<div className="form-switch">
263-
<p>Show All Repositories</p>
264-
<FormControlLabel
265-
className="form-control-label"
266-
control={
267-
<RCSwitch
268-
checked={this.state.includePrivateRepositories}
269-
onChange={this.handleAllRepositories}
270-
name="includePrivateRepositories"
271-
/>
272-
}
273-
/>
265+
<p>Show All Repositories</p>
266+
<FormControlLabel
267+
className="form-control-label"
268+
control={
269+
<RCSwitch
270+
checked={this.state.includePrivateRepositories}
271+
onChange={this.handleAllRepositories}
272+
name="includePrivateRepositories"
273+
/>
274+
}
275+
/>
274276
</div>
275-
277+
276278
<p className="create-dialog-description">
277-
{includePrivateRepositories ? "Both public and private " : "Only public "}
279+
{includePrivateRepositories
280+
? "Both public and private "
281+
: "Only public "}
278282
repositories are visible.
279283
</p>
280284
<br />
281285
<div className="form-switch">
282-
283-
<p>
284-
Public Room
285-
</p>
286-
<FormControlLabel
287-
className="form-control-label"
288-
control={
289-
<RCSwitch
290-
checked={publicChannel}
291-
onChange={() =>
292-
this.setState({ publicChannel: !publicChannel })
293-
}
294-
name="publicChannel"
295-
296-
/>
297-
}
298-
/>
286+
<p>Public Room</p>
287+
<FormControlLabel
288+
className="form-control-label"
289+
control={
290+
<RCSwitch
291+
checked={publicChannel}
292+
onChange={() =>
293+
this.setState({ publicChannel: !publicChannel })
294+
}
295+
name="publicChannel"
296+
/>
297+
}
298+
/>
299299
</div>
300300
<p className="create-dialog-description">
301301
{publicChannel

client/src/components/RightSidebar/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import ChannelInfo from '../ChannelInfo';
1+
import RoomInfo from '../RoomInfo';
22
import ActivityPane from './../ActivityPane';
33

44
import './index.css';
55

66
export default function RightSidebar(props) {
77
return (
88
<div className="rightSidebar-wrapper">
9-
<ChannelInfo {...props} />
9+
<RoomInfo {...props} />
1010
<ActivityPane {...props}/>
1111
</div>
1212
);

0 commit comments

Comments
 (0)