mirror of
https://github.com/simon987/task_tracker.git
synced 2025-12-16 08:19:03 +00:00
More work on project permissions
This commit is contained in:
@@ -8,4 +8,5 @@ export interface Project {
|
||||
version: string;
|
||||
public: boolean;
|
||||
chain: number;
|
||||
hidden: boolean;
|
||||
}
|
||||
|
||||
@@ -13,8 +13,11 @@
|
||||
<mat-expansion-panel *ngFor="let project of projects" style="margin-top: 1em">
|
||||
<mat-expansion-panel-header>
|
||||
<mat-panel-title>
|
||||
<mat-icon *ngIf="project.public">public</mat-icon>
|
||||
<mat-icon *ngIf="!project.public">lock</mat-icon>
|
||||
<mat-icon *ngIf="project.public" [title]="'project.public' | translate">public</mat-icon>
|
||||
<mat-icon *ngIf="!project.public && !project.hidden" [title]="'project.private'|translate">
|
||||
lock
|
||||
</mat-icon>
|
||||
<mat-icon *ngIf="project.hidden" [title]="'project.hidden'|translate">block</mat-icon>
|
||||
<span style="width: 3em">{{project.id}}</span>{{project.name}}
|
||||
</mat-panel-title>
|
||||
<mat-panel-description>{{project.motd}}</mat-panel-description>
|
||||
|
||||
Reference in New Issue
Block a user