Skip to content
This repository has been archived by the owner on Mar 25, 2023. It is now read-only.

Commit

Permalink
fix(snapshot): disable create snapshot button when no name (#1589) (#…
Browse files Browse the repository at this point in the history
…1665)

PR Close #1665
  • Loading branch information
dron8552 committed May 16, 2019
1 parent b3f9e11 commit 7819105
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,14 @@ <h3 class="mat-dialog-title">
<button mat-button color="primary" matDialogClose type="button">
{{ 'COMMON.CANCEL' | translate }}
</button>
<button *ngIf="enoughResources" mat-button color="primary" type="button" (click)="onSubmit()">
<button
*ngIf="enoughResources"
mat-button
color="primary"
type="submit"
[disabled]="!name"
(click)="onSubmit()"
>
{{ 'COMMON.CREATE' | translate }}
</button>
</div>
Expand Down

0 comments on commit 7819105

Please sign in to comment.