|
|
@@ -8,53 +8,65 @@
|
|
|
<i class="{{::section.icon}}"></i>
|
|
|
{{::section.title}}
|
|
|
</a>
|
|
|
+
|
|
|
+ <div class="dashboard-settings__aside-actions">
|
|
|
+ <button class="btn btn-inverse" ng-click="ctrl.openSaveAsModal()" ng-show="ctrl.canSaveAs">
|
|
|
+ <i class="fa fa-copy"></i>
|
|
|
+ Save As...
|
|
|
+ </button>
|
|
|
+
|
|
|
+ <button class="btn btn-danger" ng-click="ctrl.deleteDashboard()" ng-show="ctrl.canDelete">
|
|
|
+ <i class="fa fa-trash"></i>
|
|
|
+ Delete
|
|
|
+ </button>
|
|
|
+ </div>
|
|
|
</aside>
|
|
|
|
|
|
<div class="dashboard-settings__content" ng-if="ctrl.viewId === 'settings'">
|
|
|
- <h3 class="dashboard-settings__header">
|
|
|
- General
|
|
|
- </h3>
|
|
|
-
|
|
|
- <div class="gf-form-group">
|
|
|
- <div class="gf-form">
|
|
|
- <label class="gf-form-label width-7">Name</label>
|
|
|
- <input type="text" class="gf-form-input width-30" ng-model='ctrl.dashboard.title'></input>
|
|
|
- </div>
|
|
|
- <div class="gf-form">
|
|
|
- <label class="gf-form-label width-7">Description</label>
|
|
|
- <input type="text" class="gf-form-input width-30" ng-model='ctrl.dashboard.description'></input>
|
|
|
- </div>
|
|
|
- <div class="gf-form">
|
|
|
- <label class="gf-form-label width-7">
|
|
|
- Tags
|
|
|
- <info-popover mode="right-normal">Press enter to add a tag</info-popover>
|
|
|
- </label>
|
|
|
- <bootstrap-tagsinput ng-model="ctrl.dashboard.tags" tagclass="label label-tag" placeholder="add tags">
|
|
|
- </bootstrap-tagsinput>
|
|
|
- </div>
|
|
|
- <folder-picker initial-title="ctrl.dashboard.meta.folderTitle"
|
|
|
- initial-folder-id="ctrl.dashboard.folderId"
|
|
|
- on-change="ctrl.onFolderChange($folder)"
|
|
|
- label-class="width-7">
|
|
|
- </folder-picker>
|
|
|
- <gf-form-switch class="gf-form" label="Editable" tooltip="Uncheck, then save and reload to disable all dashboard editing" checked="ctrl.dashboard.editable" label-class="width-7">
|
|
|
- </gf-form-switch>
|
|
|
- </div>
|
|
|
-
|
|
|
- <gf-time-picker-settings dashboard="ctrl.dashboard"></gf-time-picker-settings>
|
|
|
-
|
|
|
- <h5 class="section-heading">Panel Options</h5>
|
|
|
- <div class="gf-form">
|
|
|
- <label class="gf-form-label width-11">
|
|
|
- Graph Tooltip
|
|
|
- <info-popover mode="right-normal">
|
|
|
- Cycle between options using Shortcut: CTRL+O or CMD+O
|
|
|
- </info-popover>
|
|
|
- </label>
|
|
|
- <div class="gf-form-select-wrapper">
|
|
|
- <select ng-model="ctrl.dashboard.graphTooltip" class='gf-form-input' ng-options="f.value as f.text for f in [{value: 0, text: 'Default'}, {value: 1, text: 'Shared crosshair'},{value: 2, text: 'Shared Tooltip'}]"></select>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
+ <h3 class="dashboard-settings__header">
|
|
|
+ General
|
|
|
+ </h3>
|
|
|
+
|
|
|
+ <div class="gf-form-group">
|
|
|
+ <div class="gf-form">
|
|
|
+ <label class="gf-form-label width-7">Name</label>
|
|
|
+ <input type="text" class="gf-form-input width-30" ng-model='ctrl.dashboard.title'></input>
|
|
|
+ </div>
|
|
|
+ <div class="gf-form">
|
|
|
+ <label class="gf-form-label width-7">Description</label>
|
|
|
+ <input type="text" class="gf-form-input width-30" ng-model='ctrl.dashboard.description'></input>
|
|
|
+ </div>
|
|
|
+ <div class="gf-form">
|
|
|
+ <label class="gf-form-label width-7">
|
|
|
+ Tags
|
|
|
+ <info-popover mode="right-normal">Press enter to add a tag</info-popover>
|
|
|
+ </label>
|
|
|
+ <bootstrap-tagsinput ng-model="ctrl.dashboard.tags" tagclass="label label-tag" placeholder="add tags">
|
|
|
+ </bootstrap-tagsinput>
|
|
|
+ </div>
|
|
|
+ <folder-picker initial-title="ctrl.dashboard.meta.folderTitle"
|
|
|
+ initial-folder-id="ctrl.dashboard.folderId"
|
|
|
+ on-change="ctrl.onFolderChange($folder)"
|
|
|
+ label-class="width-7">
|
|
|
+ </folder-picker>
|
|
|
+ <gf-form-switch class="gf-form" label="Editable" tooltip="Uncheck, then save and reload to disable all dashboard editing" checked="ctrl.dashboard.editable" label-class="width-7">
|
|
|
+ </gf-form-switch>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <gf-time-picker-settings dashboard="ctrl.dashboard"></gf-time-picker-settings>
|
|
|
+
|
|
|
+ <h5 class="section-heading">Panel Options</h5>
|
|
|
+ <div class="gf-form">
|
|
|
+ <label class="gf-form-label width-11">
|
|
|
+ Graph Tooltip
|
|
|
+ <info-popover mode="right-normal">
|
|
|
+ Cycle between options using Shortcut: CTRL+O or CMD+O
|
|
|
+ </info-popover>
|
|
|
+ </label>
|
|
|
+ <div class="gf-form-select-wrapper">
|
|
|
+ <select ng-model="ctrl.dashboard.graphTooltip" class='gf-form-input' ng-options="f.value as f.text for f in [{value: 0, text: 'Default'}, {value: 1, text: 'Shared crosshair'},{value: 2, text: 'Shared Tooltip'}]"></select>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
|
|
|
<div class="dashboard-settings__content" ng-if="ctrl.viewId === 'annotations'" ng-include="'public/app/features/annotations/partials/editor.html'">
|
|
|
@@ -72,29 +84,11 @@
|
|
|
</div>
|
|
|
|
|
|
<div class="dashboard-settings__content" ng-if="ctrl.viewId === 'view_json'" >
|
|
|
- <h3 class="dashboard-settings__header">View JSON</h3>
|
|
|
-
|
|
|
- <div class="gf-form">
|
|
|
- <textarea class="gf-form-input" ng-model="ctrl.json" rows="30" spellcheck="false"></textarea>
|
|
|
- </div>
|
|
|
-</div>
|
|
|
+ <h3 class="dashboard-settings__header">View JSON</h3>
|
|
|
|
|
|
-<div class="dashboard-settings__content" ng-if="ctrl.viewId === 'save_as'">
|
|
|
- <save-dashboard-as></save-dashboard-as>
|
|
|
-</div>
|
|
|
-
|
|
|
-<div class="dashboard-settings__content" ng-if="ctrl.viewId === 'delete'">
|
|
|
- <h3 class="dashboard-settings__header">Delete dashboard</h3>
|
|
|
-
|
|
|
- <div class="p-b-2" ng-if="ctrl.alertCount > 1">
|
|
|
- <h5>This dashboard contains {{ctrl.alertCount}} alerts. Deleting this dashboard will also delete those alerts</h5>
|
|
|
- <input type="text" class="gf-form-input width-16" style="display: inline-block;" placeholder="Type DELETE to confirm" ng-model="ctrl.confirmText" ng-change="ctrl.confirmTextChanged()">
|
|
|
- </div>
|
|
|
-
|
|
|
- <button class="btn btn-danger" ng-click="ctrl.deleteDashboard()" ng-disabled="!ctrl.confirmValid" >
|
|
|
- <i class="fa fa-trash"></i>
|
|
|
- Delete
|
|
|
- </button>
|
|
|
+ <div class="gf-form">
|
|
|
+ <textarea class="gf-form-input" ng-model="ctrl.json" rows="30" spellcheck="false"></textarea>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
|
|
|
<div class="dashboard-settings__content" ng-if="ctrl.viewId === '404'">
|