feat: manage view of rooms for moderators and users

pull/281/head
Sebastien Marinier 2024-05-15 17:39:59 +02:00 committed by Sebastien Marinier
parent 2a29608c97
commit 4095cbe52d
1 changed files with 4 additions and 2 deletions

View File

@ -194,7 +194,7 @@ const RoomRow: React.FC<Props> = (props) => {
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 ?
<EditableValue field={field} value={room[field]} setValue={updateRoom} type={type} options={options} />
:
@ -265,7 +265,9 @@ const RoomRow: React.FC<Props> = (props) => {
</td>
}
<td className="bbb-shrink">
{<RecordingsNumber recordings={recordings} showRecordings={showRecordings} setShowRecordings={setShowRecordings} />}
{adminRoom &&
<RecordingsNumber recordings={recordings} showRecordings={showRecordings} setShowRecordings={setShowRecordings} />
}
</td>
<td className="clone icon-col">
<button