aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+admin/system
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/+admin/system')
-rw-r--r--client/src/app/+admin/system/system.component.html10
-rw-r--r--client/src/app/+admin/system/system.component.scss8
-rw-r--r--client/src/app/+admin/system/system.component.ts18
3 files changed, 1 insertions, 35 deletions
diff --git a/client/src/app/+admin/system/system.component.html b/client/src/app/+admin/system/system.component.html
index 5385887b7..0680b43f9 100644
--- a/client/src/app/+admin/system/system.component.html
+++ b/client/src/app/+admin/system/system.component.html
@@ -1,11 +1 @@
1<div class="admin-sub-header">
2 <div class="admin-sub-nav">
3 <a *ngIf="hasJobsRight()" i18n routerLink="jobs" routerLinkActive="active">Jobs</a>
4
5 <a *ngIf="hasLogsRight()" i18n routerLink="logs" routerLinkActive="active">Logs</a>
6
7 <a *ngIf="hasDebugRight()" i18n routerLink="debug" routerLinkActive="active">Debug</a>
8 </div>
9</div>
10
11<router-outlet></router-outlet> <router-outlet></router-outlet>
diff --git a/client/src/app/+admin/system/system.component.scss b/client/src/app/+admin/system/system.component.scss
deleted file mode 100644
index 18858ac1c..000000000
--- a/client/src/app/+admin/system/system.component.scss
+++ /dev/null
@@ -1,8 +0,0 @@
1@use '_variables' as *;
2@use '_mixins' as *;
3
4.form-sub-title {
5 @include margin-right(30px);
6
7 flex-grow: 0;
8}
diff --git a/client/src/app/+admin/system/system.component.ts b/client/src/app/+admin/system/system.component.ts
index b544c2a97..b63160b86 100644
--- a/client/src/app/+admin/system/system.component.ts
+++ b/client/src/app/+admin/system/system.component.ts
@@ -1,24 +1,8 @@
1import { Component } from '@angular/core' 1import { Component } from '@angular/core'
2import { UserRight } from '@shared/models'
3import { AuthService } from '@app/core'
4 2
5@Component({ 3@Component({
6 templateUrl: './system.component.html', 4 templateUrl: './system.component.html',
7 styleUrls: [ './system.component.scss' ] 5 styleUrls: []
8}) 6})
9export class SystemComponent { 7export class SystemComponent {
10
11 constructor (private auth: AuthService) {}
12
13 hasLogsRight () {
14 return this.auth.getUser().hasRight(UserRight.MANAGE_LOGS)
15 }
16
17 hasJobsRight () {
18 return this.auth.getUser().hasRight(UserRight.MANAGE_JOBS)
19 }
20
21 hasDebugRight () {
22 return this.auth.getUser().hasRight(UserRight.MANAGE_DEBUG)
23 }
24} 8}