change: made dashboard save message optional

This commit is contained in:
Torkel Ödegaard 2017-06-23 11:49:32 -04:00
parent be29357d22
commit 73fcc919cd

View File

@ -29,8 +29,7 @@ const template = `
ng-model="ctrl.message" ng-model="ctrl.message"
ng-model-options="{allowInvalid: true}" ng-model-options="{allowInvalid: true}"
ng-maxlength="this.max" ng-maxlength="this.max"
autocomplete="off" autocomplete="off" />
required />
<small class="gf-form-hint-text muted" ng-cloak> <small class="gf-form-hint-text muted" ng-cloak>
<span ng-class="{'text-error': ctrl.saveForm.message.$invalid && ctrl.saveForm.message.$dirty }"> <span ng-class="{'text-error': ctrl.saveForm.message.$invalid && ctrl.saveForm.message.$dirty }">
{{ctrl.message.length || 0}} {{ctrl.message.length || 0}}