Skip to content

Commit

Permalink
DBP-830 Fix whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
simoncolincap committed Sep 11, 2024
1 parent 7dbc80d commit a08f1e5
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions app/javascript/components/admin/roles/forms/EditRoleForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export default function EditRoleForm({ role }) {
{
isLoadingRoomConfigs || isLoading
? (
// eslint-disable-next-line react/no-array-index-key
// eslint-disable-next-line react/no-array-index-key
[...Array(9)].map((val, idx) => <RolePermissionRowPlaceHolder key={idx} />)
)
: (
Expand All @@ -83,12 +83,12 @@ export default function EditRoleForm({ role }) {
defaultValue={rolePermissions?.CreateRoom === 'true'}
/>
{['optional', 'default_enabled'].includes(roomConfigs?.record) && (
<RolePermissionRow
permissionName="CanRecord"
description={t('admin.roles.edit.record')}
roleId={role?.id}
defaultValue={rolePermissions?.CanRecord === 'true'}
/>
<RolePermissionRow
permissionName="CanRecord"
description={t('admin.roles.edit.record')}
roleId={role?.id}
defaultValue={rolePermissions?.CanRecord === 'true'}
/>
)}
<RolePermissionRow
permissionName="ManageUsers"
Expand Down Expand Up @@ -116,12 +116,12 @@ export default function EditRoleForm({ role }) {
/>
{/* Don't show ManageRoles if current_user is editing their own role */}
{(currentUser.role.id !== role?.id) && (
<RolePermissionRow
permissionName="ManageRoles"
description={t('admin.roles.edit.manage_roles')}
roleId={role?.id}
defaultValue={rolePermissions?.ManageRoles === 'true'}
/>
<RolePermissionRow
permissionName="ManageRoles"
description={t('admin.roles.edit.manage_roles')}
roleId={role?.id}
defaultValue={rolePermissions?.ManageRoles === 'true'}
/>
)}
<RolePermissionRow
permissionName="SharedList"
Expand Down

0 comments on commit a08f1e5

Please sign in to comment.