浏览代码

dashboard_history: minor changes and fixes

Torkel Ödegaard 8 年之前
父节点
当前提交
c4e872b9da

+ 7 - 5
public/app/core/nav_model_srv.ts

@@ -167,11 +167,13 @@ export class NavModelSrv {
         clickHandler: () => dashNavCtrl.openEditView('annotations')
       });
 
-      menu.push({
-        title: 'Version history',
-        icon: 'fa fa-fw fa-history',
-        clickHandler: () => dashNavCtrl.openEditView('history')
-      });
+      if (!dashboard.meta.isHome) {
+        menu.push({
+          title: 'Version history',
+          icon: 'fa fa-fw fa-history',
+          clickHandler: () => dashNavCtrl.openEditView('history')
+        });
+      }
 
       menu.push({
         title: 'View JSON',

+ 1 - 1
public/app/features/dashboard/dashboard_srv.ts

@@ -127,7 +127,7 @@ export class DashboardSrv {
 
   showSaveModal() {
     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(),
       modalClass: 'modal--narrow'
     });

+ 1 - 1
public/app/features/dashboard/unsaved_changes_modal.ts

@@ -18,7 +18,7 @@ const  template = `
   <div class="modal-content text-center">
 
     <div class="confirm-modal-text">
-      What do you want to do?
+      Do you want to save you changes?
     </div>
 
     <div class="confirm-modal-buttons">