|
@ -39,12 +39,18 @@ |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div class="justify-content-end" mat-dialog-actions> |
|
|
<div class="justify-content-end" mat-dialog-actions> |
|
|
<button i18n mat-button type="button" (click)="onCancel()">Cancel</button> |
|
|
<button mat-button type="button" (click)="onCancel()"> |
|
|
|
|
|
@if (platformForm.dirty) { |
|
|
|
|
|
<ng-container i18n>Cancel</ng-container> |
|
|
|
|
|
} @else { |
|
|
|
|
|
<ng-container i18n>Close</ng-container> |
|
|
|
|
|
} |
|
|
|
|
|
</button> |
|
|
<button |
|
|
<button |
|
|
color="primary" |
|
|
color="primary" |
|
|
mat-flat-button |
|
|
mat-flat-button |
|
|
type="submit" |
|
|
type="submit" |
|
|
[disabled]="!platformForm.valid" |
|
|
[disabled]="!(platformForm.dirty && platformForm.valid)" |
|
|
> |
|
|
> |
|
|
<ng-container i18n>Save</ng-container> |
|
|
<ng-container i18n>Save</ng-container> |
|
|
</button> |
|
|
</button> |
|
|