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

Commit 7819105

Browse files
authored
fix(snapshot): disable create snapshot button when no name (#1589) (#1665)
PR Close #1665
1 parent b3f9e11 commit 7819105

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

src/app/vm/vm-sidebar/storage-detail/volumes/snapshot-creation/snapshot-creation.component.html

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,14 @@ <h3 class="mat-dialog-title">
3131
<button mat-button color="primary" matDialogClose type="button">
3232
{{ 'COMMON.CANCEL' | translate }}
3333
</button>
34-
<button *ngIf="enoughResources" mat-button color="primary" type="button" (click)="onSubmit()">
34+
<button
35+
*ngIf="enoughResources"
36+
mat-button
37+
color="primary"
38+
type="submit"
39+
[disabled]="!name"
40+
(click)="onSubmit()"
41+
>
3542
{{ 'COMMON.CREATE' | translate }}
3643
</button>
3744
</div>

0 commit comments

Comments
 (0)