diff options
Diffstat (limited to 'client/src/app/+admin/admin.component.ts')
-rw-r--r-- | client/src/app/+admin/admin.component.ts | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/client/src/app/+admin/admin.component.ts b/client/src/app/+admin/admin.component.ts index 15739f8d3..27d5e0a10 100644 --- a/client/src/app/+admin/admin.component.ts +++ b/client/src/app/+admin/admin.component.ts | |||
@@ -31,8 +31,21 @@ export class AdminComponent implements OnInit { | |||
31 | } | 31 | } |
32 | 32 | ||
33 | private buildOverviewItems () { | 33 | private buildOverviewItems () { |
34 | const overviewItems: TopMenuDropdownParam = { | ||
35 | label: $localize`Overview`, | ||
36 | children: [] | ||
37 | } | ||
38 | |||
34 | if (this.hasUsersRight()) { | 39 | if (this.hasUsersRight()) { |
35 | this.menuEntries.push({ label: $localize`Users`, routerLink: '/admin/users' }) | 40 | overviewItems.children.push({ |
41 | label: $localize`Users`, | ||
42 | routerLink: '/admin/users', | ||
43 | iconName: 'user' | ||
44 | }) | ||
45 | } | ||
46 | |||
47 | if (overviewItems.children.length !== 0) { | ||
48 | this.menuEntries.push(overviewItems) | ||
36 | } | 49 | } |
37 | } | 50 | } |
38 | 51 | ||