File tree Expand file tree Collapse file tree 3 files changed +11
-1
lines changed
Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 22import { PhShareNetwork } from " @phosphor-icons/vue" ;
33import { computedAsync } from " @vueuse/core" ;
44import UrlButton from " @/components/UrlButton.vue" ;
5+ import useAdmin from " @/user/admin.composable" ;
56import { useAuth } from " @/auth/auth.composable" ;
67import { getAuthGuiUrl , type ResourceType } from " @/api/sbauth" ;
78import { useResourceStore } from " @/store/resource.store" ;
@@ -13,6 +14,7 @@ const props = defineProps<{
1314}>();
1415
1516const store = useResourceStore ();
17+ const { adminMode } = useAdmin ();
1618const { getAccessLevel } = useAuth ();
1719
1820const resource = computedAsync (() => store .loadResource (props .resourceId ));
@@ -33,7 +35,13 @@ const resource = computedAsync(() => store.loadResource(props.resourceId));
3335 <th >{{ $t("sharing.level") }}</th >
3436 <td class =" flex gap-3 items-baseline" >
3537 <div >
36- <TerminalOutput class =" inline leading-loose" >
38+ <span
39+ v-if =" adminMode"
40+ class =" bg-amber-300 text-amber-900 px-2 py-1"
41+ >
42+ {{ $t("sharing.level.admin_mode") }}
43+ </span >
44+ <TerminalOutput v-else class =" inline leading-loose" >
3745 {{ getAccessLevel(resourceType, resourceId) }}
3846 </TerminalOutput >
3947 </div >
Original file line number Diff line number Diff line change @@ -83,6 +83,7 @@ job.process.korp: Installation to Korp
8383job.process.strix : Installation to Strix
8484sharing : Sharing
8585sharing.level : Your access level
86+ sharing.level.admin_mode : Admin mode enabled
8687sharing.manage : Manage access
8788sharing.owner : Owner
8889sharing.help.heading : About access management
Original file line number Diff line number Diff line change @@ -84,6 +84,7 @@ job.process.korp: Installation i Korp
8484job.process.strix : Installation i Strix
8585sharing : Delning
8686sharing.level : Din behörighetsnivå
87+ sharing.level.admin_mode : Administratörsläge aktiverat
8788sharing.manage : Hantera åtkomst
8889sharing.owner : Ägare
8990sharing.help.heading : Om åtkomsthantering
You can’t perform that action at this time.
0 commit comments