You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by te...@apache.org on 2020/03/02 10:59:16 UTC
[incubator-streampipes] branch dev updated: [STREAMPIPES-94]
dashboard requires a name
This is an automated email from the ASF dual-hosted git repository.
tex pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-streampipes.git
The following commit(s) were added to refs/heads/dev by this push:
new c3a75b9 [STREAMPIPES-94] dashboard requires a name
c3a75b9 is described below
commit c3a75b99d29048d6826769754f6491f9c2ee084d
Author: tex <te...@fzi.de>
AuthorDate: Mon Mar 2 11:59:03 2020 +0100
[STREAMPIPES-94] dashboard requires a name
---
.../dialogs/edit-dashboard/edit-dashboard-dialog.component.html | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ui/src/app/dashboard-v2/dialogs/edit-dashboard/edit-dashboard-dialog.component.html b/ui/src/app/dashboard-v2/dialogs/edit-dashboard/edit-dashboard-dialog.component.html
index 980b679..8a46e67 100644
--- a/ui/src/app/dashboard-v2/dialogs/edit-dashboard/edit-dashboard-dialog.component.html
+++ b/ui/src/app/dashboard-v2/dialogs/edit-dashboard/edit-dashboard-dialog.component.html
@@ -31,7 +31,7 @@
<div fxFlex="100" fxLayout="column" style="margin:5px;width:100%">
<mat-form-field class="full-width">
<mat-label>Dashboard Name</mat-label>
- <input matInput [(ngModel)]="dashboard.name">
+ <input matInput required [(ngModel)]="dashboard.name">
</mat-form-field>
<mat-form-field class="full-width">
<mat-label>Description</mat-label>
@@ -47,7 +47,7 @@
<button mat-button mat-raised-button class="mat-basic" (click)="onCancel()">
Cancel
</button>
- <button mat-button mat-raised-button color="primary" (click)="onSave()">
+ <button mat-button mat-raised-button color="primary" [disabled]="dashboard.name === '' || dashboard.name === undefined" (click)="onSave()">
{{createMode ? 'Create' : 'Save'}}
</button>
</div>