You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
1.2 KiB
21 lines
1.2 KiB
5 months ago
|
<crud-template #$crud [defination]="defination" [selectable]="false" [addable]="false" [editable]="false"
|
||
|
[deletable]="false" [api]="'managetask'" [row-operation-template]="$operatoin" [error]="error">
|
||
|
<ng-template #$state let-row>
|
||
|
<ng-container [ngSwitch]="row.statusCode">
|
||
|
<mat-icon *ngSwitchCase="0" class="app-foreground-secondary"
|
||
|
matTooltip="{{ 'routes.wcs.managetask.waiting' | translate }}">watch_later</mat-icon>
|
||
|
<mat-icon *ngSwitchCase="1" class="app-foreground-primary"
|
||
|
matTooltip="{{ 'routes.wcs.managetask.running' | translate }}">swap_vertical_circle</mat-icon>
|
||
|
<mat-icon *ngSwitchDefault class="app-foreground-warn"
|
||
|
matTooltip="{{ 'routes.wcs.managetask.error' | translate }}:{{ row.errorInfo || 'SystemError' }}">error</mat-icon>
|
||
|
</ng-container>
|
||
|
</ng-template>
|
||
|
<ng-template #$operatoin let-row>
|
||
|
<button mat-icon-button matTooltip="{{ 'routes.wcs.managetask.Delete' | translate }}" (click)="delete(row)">
|
||
|
<mat-icon>delete</mat-icon>
|
||
|
</button>
|
||
|
<button mat-icon-button matTooltip="{{ 'routes.wcs.managetask.Complete' | translate }}" (click)="complete(row)">
|
||
|
<mat-icon>done_all</mat-icon>
|
||
|
</button>
|
||
|
</ng-template>
|
||
|
</crud-template>
|