|
|
|
@ -25,9 +25,7 @@ |
|
|
|
<mat-icon class="material-icons">close</mat-icon> |
|
|
|
</button> |
|
|
|
</mat-toolbar> |
|
|
|
<mat-progress-bar color="warn" mode="indeterminate" *ngIf="isLoading$ | async"> |
|
|
|
</mat-progress-bar> |
|
|
|
<div style="height: 4px;" *ngIf="!(isLoading$ | async)"></div> |
|
|
|
<div style="height: 4px;"></div> |
|
|
|
<div mat-dialog-content class="flex-1"> |
|
|
|
<tb-json-object-edit |
|
|
|
formControlName="json" |
|
|
|
@ -41,13 +39,12 @@ |
|
|
|
<span class="flex-1"></span> |
|
|
|
<button mat-button color="primary" |
|
|
|
type="button" |
|
|
|
[disabled]="(isLoading$ | async)" |
|
|
|
(click)="cancel()" cdkFocusInitial> |
|
|
|
{{ cancelButtonLabel }} |
|
|
|
</button> |
|
|
|
<button mat-button mat-raised-button color="primary" |
|
|
|
type="submit" |
|
|
|
[disabled]="(isLoading$ | async) || jsonFormGroup.invalid || !jsonFormGroup.dirty"> |
|
|
|
[disabled]="jsonFormGroup.invalid || !jsonFormGroup.dirty"> |
|
|
|
{{ saveButtonLabel }} |
|
|
|
</button> |
|
|
|
</div> |
|
|
|
|