mirror of
https://github.com/valitydev/redash.git
synced 2024-11-07 09:28:51 +00:00
Save new dashboard on enter key press.
This commit is contained in:
parent
617df8e4f6
commit
68e5aec861
@ -1,13 +1,13 @@
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" ng-click="$ctrl.dismiss()" ng-disabled="$ctrl.saveInProgress" aria-hidden="true">×</button>
|
||||
<h4 class="modal-title">Dashboard name: {{$ctrl.dashboard.name}}</h4>
|
||||
<h4 class="modal-title">New Dashboard</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<p>
|
||||
<input type="text" class="form-control" placeholder="Dashboard Name" ng-model="$ctrl.dashboard.name" autofocus>
|
||||
<input type="text" class="form-control" placeholder="Dashboard Name" ng-model="$ctrl.dashboard.name" autofocus ng-keyup="$event.keyCode === 13 && $ctrl.saveDashboard()">
|
||||
</p>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default" ng-disabled="$ctrl.saveInProgress" ng-click="$ctrl.dismiss()">Close</button>
|
||||
<button type="button" class="btn btn-primary" ng-disabled="$ctrl.saveInProgress || !$ctrl.isFormValid()" ng-click="$ctrl.saveDashboard()">Save</button>
|
||||
</div>
|
||||
</div>
|
Loading…
Reference in New Issue
Block a user