Compare commits

...

5 Commits

Author SHA1 Message Date
Sebastien Marinier f57c25eab2 fix: no clone action for non-admin
clone room only for admins
2024-08-19 12:26:23 +02:00
Sebastien Marinier bcf33e99e9 style: respect tabs
use 2 spaces
2024-08-19 12:25:09 +02:00
Sebastien Marinier e34c3b6e9e style: disabled checkbox
make disabled checkbox as nextcloud
2024-08-19 12:20:37 +02:00
Sebastien Marinier b099136690 feat: sharing rooms with moderators and users
Dialog and permissions management
2024-08-19 11:43:37 +02:00
Sebastien Marinier 7f1760c372 feat: manage view of rooms for moderators and users 2024-08-19 11:41:29 +02:00
2 changed files with 19 additions and 9 deletions

View File

@ -161,8 +161,23 @@ pre {
.bbb-shrink {
width: 44px;
white-space: nowrap;
}
input[type="checkbox"]{
&+label:before {
border-radius: 3px;
border-width: 2px;
}
&:disabled+label:before {
opacity: .5;
}
&:not(input:checked):disabled+label:before {
background-color: transparent !important;
}
}
}
th {
padding: 14px 6px;

View File

@ -253,27 +253,22 @@ const RoomRow: React.FC<Props> = (props) => {
<td className="max-participants bbb-shrink">
{edit('maxParticipants', 'number', adminRoom, {min: minParticipantsLimit, max: maxParticipantsLimit < 0 ? undefined : maxParticipantsLimit})}
</td>
{adminRoom &&
<td className="record bbb-shrink">
<input id={'bbb-record-' + room.id} type="checkbox" className="checkbox" disabled={!props.restriction?.allowRecording} checked={room.record} onChange={(event) => updateRoom('record', event.target.checked)} />
<input id={'bbb-record-' + room.id} type="checkbox" className="checkbox" disabled={!adminRoom || !props.restriction?.allowRecording} checked={room.record} onChange={(event) => updateRoom('record', event.target.checked)} />
<label htmlFor={'bbb-record-' + room.id}></label>
</td>
}
{!adminRoom &&
<td className="record bbb-shrink">
<span className={'icon '+(room.record ? 'icon-checkmark' : 'icon-close')+' icon-visible'}></span>
</td>
}
<td className="bbb-shrink">
{<RecordingsNumber recordings={recordings} showRecordings={showRecordings} setShowRecordings={setShowRecordings} />}
</td>
<td className="clone icon-col">
{adminRoom &&
<button
className="action-item"
onClick={cloneRow}
title={t('bbb', 'Clone room')}>
<span className="icon icon-template-add icon-visible"></span>
</button>
}
</td>
<td className="edit icon-col">
{adminRoom &&