Skip to content
This repository was archived by the owner on May 14, 2025. It is now read-only.

Commit 474c467

Browse files
committed
Create Stream: Pressing "return" submit form
Resolve #513
1 parent 9bfd410 commit 474c467

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ui/src/app/streams/stream-create-dialog/stream-create-dialog.component.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ <h4 class="modal-title pull-left">Create Stream</h4>
44
<span aria-hidden="true">&times;</span>
55
</button>
66
</div>
7-
<div class="modal-body" [formGroup]="form" [ngBusy]="busy">
7+
<form name="form-creation" (submit)="handleOk()" class="modal-body" [formGroup]="form" [ngBusy]="busy">
88
<div *ngIf="errors && errors.length > 0" class="dialog-validation">
99
<div *ngFor="let error of errors">
1010
<label class="glyphicon glyphicon-exclamation-sign dialog-error-sign">{{error}}</label>
@@ -50,8 +50,8 @@ <h4 class="modal-title pull-left">Create Stream</h4>
5050
<progressbar animate="true" [value]="progressData.percent" type="success"><b>{{progressData.percent}}%</b>
5151
</progressbar>
5252
</div>
53-
</div>
53+
</form>
5454
<div class="modal-footer">
5555
<button type="button" class="btn btn-default" (click)="handleCancel()">Close</button>
56-
<button type="button" class="btn btn-default" (click)="handleOk()" [disabled]="!canSubmit()">OK</button>
56+
<button type="submit" class="btn btn-default" [disabled]="!canSubmit()">OK</button>
5757
</div>

0 commit comments

Comments
 (0)