From af48e5550d0791925c25a23862cbe90521a7103f Mon Sep 17 00:00:00 2001 From: Yashank Date: Sun, 31 Jan 2021 04:24:33 -0800 Subject: [PATCH] disables input to edit builtin role name --- .../src/components/backend/DataTable/modals/EditRoles.svelte | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/builder/src/components/backend/DataTable/modals/EditRoles.svelte b/packages/builder/src/components/backend/DataTable/modals/EditRoles.svelte index 3b97f6d61b..981c1297e6 100644 --- a/packages/builder/src/components/backend/DataTable/modals/EditRoles.svelte +++ b/packages/builder/src/components/backend/DataTable/modals/EditRoles.svelte @@ -9,6 +9,7 @@ let permissions = [] let selectedRole = {} let errors = [] + let builtInRoles = ['Admin', 'Power', 'Basic', 'Public'] $: selectedRoleId = selectedRole._id $: otherRoles = $backendUiStore.roles.filter( role => role._id !== selectedRoleId @@ -102,7 +103,7 @@ {/each} {#if selectedRole} - +