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.
17 lines
1.0 KiB
17 lines
1.0 KiB
5 months ago
|
<crud-template #$crud [defination]="defination" [selectable]="false" [addable]="false" [editable]="false"
|
||
|
[deletable]="false" [api]="'autocommand'" [convertor]="convertor" [toolbar-buttons-template]="$autotask"
|
||
|
[error]="error">
|
||
|
<ng-template #$autotask>
|
||
|
<button mat-button color="primary" (click)="btnAutoTask()">{{ 'routes.wcs.autocommand.save' | translate }}</button>
|
||
|
</ng-template>
|
||
|
<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>
|
||
|
</crud-template>
|