Skip to content

Commit e642dce

Browse files
utkarshcmutorkelo
authored andcommitted
Fixed import dashboard bug (grafana#6480)
1 parent b8ad86f commit e642dce

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

public/app/features/dashboard/import/dash_import.html

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ <h3 class="section-heading">
7474
<div class="gf-form-inline">
7575
<div class="gf-form gf-form--grow">
7676
<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">
7979
<i class="fa fa-check"></i>
8080
</label>
8181
</div>
@@ -90,6 +90,15 @@ <h3 class="section-heading">
9090
</div>
9191
</div>
9292

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+
93102
<div ng-repeat="input in ctrl.inputs">
94103
<div class="gf-form">
95104
<label class="gf-form-label width-15">

0 commit comments

Comments
 (0)