Confirm dialog can now optionally use warn colors (used for deletion or breaking changes)

Category re-ordering is fixed

Category deletion in settings is now functional
This commit is contained in:
Isaac Abadi
2020-10-15 17:00:48 -04:00
parent 6f089491a5
commit d4e5082039
5 changed files with 37 additions and 6 deletions

View File

@@ -6,7 +6,7 @@
</mat-dialog-content>
<mat-dialog-actions>
<!-- The mat-dialog-close directive optionally accepts a value as a result for the dialog. -->
<button color="primary" mat-flat-button type="submit" (click)="confirmClicked()">{{submitText}}</button>
<button [color]="warnSubmitColor ? 'warn' : 'primary'" mat-flat-button type="submit" (click)="confirmClicked()">{{submitText}}</button>
<div class="mat-spinner" *ngIf="submitClicked">
<mat-spinner [diameter]="25"></mat-spinner>
</div>