From e424f3759c0c6638ad0743e63a6140aa92256433 Mon Sep 17 00:00:00 2001 From: farhatahmad Date: Mon, 11 Dec 2023 11:10:05 -0500 Subject: [PATCH] more work --- app/assets/locales/en.json | 3 +- .../admin/roles/forms/EditRoleForm.jsx | 23 + .../utilities/SimpleSelect.jsx | 3 +- db/schema.rb | 1 - package-lock.json | 543 +- package.json | 1 + yarn.lock | 6252 +++++++++-------- 7 files changed, 3719 insertions(+), 3107 deletions(-) diff --git a/app/assets/locales/en.json b/app/assets/locales/en.json index bc52d3968f5..85489e6c004 100644 --- a/app/assets/locales/en.json +++ b/app/assets/locales/en.json @@ -351,7 +351,8 @@ "manage_roles": "Allow users with this role to edit other roles", "shared_list": "Include users with this role in the dropdown for sharing rooms", "room_limit": "Room Limit", - "email_on_signup": "Receive an email when a new user signs up" + "email_on_signup": "Receive an email when a new user signs up", + "allowed_recording_visibility": "Allowed recording visibilities" } } }, diff --git a/app/javascript/components/admin/roles/forms/EditRoleForm.jsx b/app/javascript/components/admin/roles/forms/EditRoleForm.jsx index 5e90df42c1d..f2ee3793d50 100644 --- a/app/javascript/components/admin/roles/forms/EditRoleForm.jsx +++ b/app/javascript/components/admin/roles/forms/EditRoleForm.jsx @@ -31,6 +31,7 @@ import { useAuth } from '../../../../contexts/auth/AuthProvider'; import RolePermissionRowPlaceHolder from '../RolePermissionRowPlaceHolder'; import useEditRoleNameForm from '../../../../hooks/forms/admin/roles/useEditRoleNameForm'; import useEditRoleLimitForm from '../../../../hooks/forms/admin/roles/useEditRoleLimitForm'; +import Select from "react-select"; export default function EditRoleForm({ role }) { const { t } = useTranslation(); @@ -137,6 +138,28 @@ export default function EditRoleForm({ role }) { defaultValue={rolePermissions?.EmailOnSignup === 'true'} /> +
+ +
+ {t('admin.roles.edit.allowed_recording_visibility')} +
+
+