File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
public/app/features/dashboard/import Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -74,8 +74,8 @@ <h3 class="section-heading">
74
74
< div class ="gf-form-inline ">
75
75
< div class ="gf-form gf-form--grow ">
76
76
< label class ="gf-form-label width-15 "> Name</ label >
77
- < input type ="text " class ="gf-form-input " ng-model ="ctrl.dash.title " give-focus ="true " ng-change ="ctrl.titleChanged() " ng-class ="{'validation-error': ctrl.nameExists} ">
78
- < label class ="gf-form-label text-success " ng-if ="!ctrl.nameExists ">
77
+ < input type ="text " class ="gf-form-input " ng-model ="ctrl.dash.title " give-focus ="true " ng-change ="ctrl.titleChanged() " ng-class ="{'validation-error': ctrl.nameExists || !ctrl.dash.title } ">
78
+ < label class ="gf-form-label text-success " ng-if ="!ctrl.nameExists && ctrl.dash.title ">
79
79
< i class ="fa fa-check "> </ i >
80
80
</ label >
81
81
</ div >
@@ -90,6 +90,15 @@ <h3 class="section-heading">
90
90
</ div >
91
91
</ div >
92
92
93
+ < div class ="gf-form-inline " ng-if ="!ctrl.dash.title ">
94
+ < div class ="gf-form offset-width-15 gf-form--grow ">
95
+ < label class ="gf-form-label text-warning gf-form-label--grow ">
96
+ < i class ="fa fa-warning "> </ i >
97
+ A Dashboard should have a name
98
+ </ label >
99
+ </ div >
100
+ </ div >
101
+
93
102
< div ng-repeat ="input in ctrl.inputs ">
94
103
< div class ="gf-form ">
95
104
< label class ="gf-form-label width-15 ">
You can’t perform that action at this time.
0 commit comments