Skip to content

Commit c153f38

Browse files
committed
template: add all-tenant admin link to admin page
1 parent fee9520 commit c153f38

File tree

1 file changed

+12
-9
lines changed
  • templates/Coalesce.Vue.Template/content/Coalesce.Starter.Vue.Web/src/views

1 file changed

+12
-9
lines changed

templates/Coalesce.Vue.Template/content/Coalesce.Starter.Vue.Web/src/views/Admin.vue

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,18 @@
88
<!--#if Tenancy -->
99
<v-list-item
1010
v-if="$can(Permission.Admin)"
11-
title="Organization Settings"
11+
title="My Organization Settings"
1212
subtitle="Edit the details of your organization."
1313
:to="`/admin/Tenant/edit/${$userInfo.tenantId}`"
1414
prepend-icon="fa fa-users"
15-
>
16-
</v-list-item>
15+
/>
16+
<v-list-item
17+
v-if="$userInfo.roles?.includes('GlobalAdmin')"
18+
to="/admin/Tenant?dataSource=GlobalAdminSource"
19+
prepend-icon="fa fa-building"
20+
title="All Organizations"
21+
subtitle="Perform administration of all organizations."
22+
/>
1723
<!--#endif -->
1824
<!--#if (AuditLogs && Identity) -->
1925
<v-list-item
@@ -22,8 +28,7 @@
2228
subtitle="Logs of each data change made in the application."
2329
to="/admin/audit"
2430
prepend-icon="fa fa-clipboard-list"
25-
>
26-
</v-list-item>
31+
/>
2732
<!--#endif -->
2833
<!--#if (AuditLogs && !Identity)
2934
<v-list-item
@@ -40,16 +45,14 @@
4045
subtitle="An overview of how each property, method, and endpoint is served by Coalesce."
4146
href="/coalesce-security"
4247
prepend-icon="fa fa-lock-open"
43-
>
44-
</v-list-item>
48+
/>
4549
<!--#if OpenAPI -->
4650
<v-list-item
4751
title="Open API"
4852
subtitle="View OpenAPI documentation for the application."
4953
to="/openapi"
5054
prepend-icon="fa fa-code"
51-
>
52-
</v-list-item>
55+
/>
5356
<!--#endif -->
5457
</v-list>
5558
</v-card-text>

0 commit comments

Comments
 (0)