diff --git a/src/fragmentarium/ui/fragment/ScopeEditor.tsx b/src/fragmentarium/ui/fragment/ScopeEditor.tsx index 33f904a63..327256321 100644 --- a/src/fragmentarium/ui/fragment/ScopeEditor.tsx +++ b/src/fragmentarium/ui/fragment/ScopeEditor.tsx @@ -51,7 +51,9 @@ const ScopeEditor: React.FC = ({ const handleSubmit = async () => { await updateScopes(selectedScopes) } - + const getDisplayScope = (scope: string) => { + return scope.replace('read:', '').replace('-fragments', '') + } return (

Permissions

@@ -59,23 +61,20 @@ const ScopeEditor: React.FC = ({ Records with added permissions are visible only to users who have those permissions.

-
    - {fragmentScopes.map((scope) => ( -
  • - -
  • - ))} -
+ {fragmentScopes.map((scope) => ( +
+ +
+ ))}
) } - export default ScopeEditor