mirror of
https://github.com/simon987/task_tracker.git
synced 2025-12-19 17:54:53 +00:00
Task chaining + some refactoring
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
<mat-form-field appearance="outline" style="margin-top: 1em">
|
||||
<mat-label>{{"project.chain" | translate}}</mat-label>
|
||||
<mat-select [(ngModel)]="project" (selectionChange)="projectChange.emit($event.value)"
|
||||
[placeholder]="'project.chain' | translate"
|
||||
(opened)="loadProjectList()">
|
||||
<mat-select-trigger>{{project?.name}}</mat-select-trigger>
|
||||
<mat-option disabled *ngIf="projectList == undefined">
|
||||
{{"project_select.loading" | translate}}
|
||||
</mat-option>
|
||||
<mat-option [value]="null" *ngIf="projectList">
|
||||
{{"project_select.none" | translate}}
|
||||
</mat-option>
|
||||
<mat-option *ngFor="let p of projectList" [value]="p">
|
||||
<mat-icon *ngIf="p.public">public</mat-icon>
|
||||
<mat-icon *ngIf="!p.public">lock</mat-icon>
|
||||
<span style="width: 3em; display: inline-block">{{p.id}}</span>
|
||||
{{p.name}}
|
||||
</mat-option>
|
||||
</mat-select>
|
||||
</mat-form-field>
|
||||
Reference in New Issue
Block a user