Commit f1a875b5 authored by Boris Vasilenko's avatar Boris Vasilenko
Browse files

NAS-113817: Errors in EntityJobComponent cannot be closed

parent 0591a48a
Showing with 36 additions and 21 deletions
+36 -21
......@@ -47,25 +47,40 @@
</mat-dialog-content>
<div mat-dialog-actions>
<button
mat-button
*ngIf="showAbortButton && job?.state === JobState.Running"
ix-auto
ix-auto-type="button"
ix-auto-identifier="ABORT"
(click)="abortJob()"
>
{{ 'Abort' | translate }}
</button>
<button
*ngIf="showCloseButton"
class="mat-dialog-close"
mat-icon-button
mat-dialog-close="close"
ix-auto
ix-auto-type="button"
ix-auto-identifier="CLOSE"
>
<mat-icon>remove</mat-icon>
</button>
<ng-container *ngIf="job?.state === JobState.Failed; then buttonsFailed else buttonsDefault"></ng-container>
<ng-template #buttonsFailed>
<button
class="mat-dialog-close"
mat-icon-button
mat-dialog-close="close"
ix-auto
ix-auto-type="button"
ix-auto-identifier="CLOSE"
>
<mat-icon>close</mat-icon>
</button>
</ng-template>
<ng-template #buttonsDefault>
<button
mat-button
*ngIf="showAbortButton && job?.state === JobState.Running"
ix-auto
ix-auto-type="button"
ix-auto-identifier="ABORT"
(click)="abortJob()"
>
{{ 'Abort' | translate }}
</button>
<button
*ngIf="showCloseButton"
class="mat-dialog-close"
mat-icon-button
mat-dialog-close="close"
ix-auto
ix-auto-type="button"
ix-auto-identifier="CLOSE"
>
<mat-icon>remove</mat-icon>
</button>
</ng-template>
</div>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment