mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
dashboard_history: minor changes and fixes
This commit is contained in:
parent
7b5f7ed553
commit
c4e872b9da
@ -167,11 +167,13 @@ export class NavModelSrv {
|
|||||||
clickHandler: () => dashNavCtrl.openEditView('annotations')
|
clickHandler: () => dashNavCtrl.openEditView('annotations')
|
||||||
});
|
});
|
||||||
|
|
||||||
menu.push({
|
if (!dashboard.meta.isHome) {
|
||||||
title: 'Version history',
|
menu.push({
|
||||||
icon: 'fa fa-fw fa-history',
|
title: 'Version history',
|
||||||
clickHandler: () => dashNavCtrl.openEditView('history')
|
icon: 'fa fa-fw fa-history',
|
||||||
});
|
clickHandler: () => dashNavCtrl.openEditView('history')
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
menu.push({
|
menu.push({
|
||||||
title: 'View JSON',
|
title: 'View JSON',
|
||||||
|
@ -127,7 +127,7 @@ export class DashboardSrv {
|
|||||||
|
|
||||||
showSaveModal() {
|
showSaveModal() {
|
||||||
this.$rootScope.appEvent('show-modal', {
|
this.$rootScope.appEvent('show-modal', {
|
||||||
templateHtml: '<save-dashboard-modal dismiss="dismiss()"></save-dashboard-modal>"',
|
templateHtml: '<save-dashboard-modal dismiss="dismiss()"></save-dashboard-modal>',
|
||||||
scope: this.$rootScope.$new(),
|
scope: this.$rootScope.$new(),
|
||||||
modalClass: 'modal--narrow'
|
modalClass: 'modal--narrow'
|
||||||
});
|
});
|
||||||
|
@ -18,7 +18,7 @@ const template = `
|
|||||||
<div class="modal-content text-center">
|
<div class="modal-content text-center">
|
||||||
|
|
||||||
<div class="confirm-modal-text">
|
<div class="confirm-modal-text">
|
||||||
What do you want to do?
|
Do you want to save you changes?
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="confirm-modal-buttons">
|
<div class="confirm-modal-buttons">
|
||||||
|
Loading…
Reference in New Issue
Block a user