mirror of https://github.com/sualko/cloud_bbb
feat: manage view of rooms for moderators and users
parent
2a29608c97
commit
4095cbe52d
|
@ -194,7 +194,7 @@ const RoomRow: React.FC<Props> = (props) => {
|
||||||
return <span></span>;
|
return <span></span>;
|
||||||
}
|
}
|
||||||
|
|
||||||
function edit(field: string, type: 'text' | 'number' = 'text', canEdit = true, options?) {
|
function edit(field: string, type: 'text' | 'number' = 'text', canEdit: boolean = true, options?) {
|
||||||
return canEdit ?
|
return canEdit ?
|
||||||
<EditableValue field={field} value={room[field]} setValue={updateRoom} type={type} options={options} />
|
<EditableValue field={field} value={room[field]} setValue={updateRoom} type={type} options={options} />
|
||||||
:
|
:
|
||||||
|
@ -265,7 +265,9 @@ const RoomRow: React.FC<Props> = (props) => {
|
||||||
</td>
|
</td>
|
||||||
}
|
}
|
||||||
<td className="bbb-shrink">
|
<td className="bbb-shrink">
|
||||||
{<RecordingsNumber recordings={recordings} showRecordings={showRecordings} setShowRecordings={setShowRecordings} />}
|
{adminRoom &&
|
||||||
|
<RecordingsNumber recordings={recordings} showRecordings={showRecordings} setShowRecordings={setShowRecordings} />
|
||||||
|
}
|
||||||
</td>
|
</td>
|
||||||
<td className="clone icon-col">
|
<td className="clone icon-col">
|
||||||
<button
|
<button
|
||||||
|
|
Loading…
Reference in New Issue