diff --git a/src/app/features/dashboard/dashboardCtrl.js b/src/app/features/dashboard/dashboardCtrl.js index 649fc14ede0..3eab543ff73 100644 --- a/src/app/features/dashboard/dashboardCtrl.js +++ b/src/app/features/dashboard/dashboardCtrl.js @@ -59,7 +59,7 @@ function (angular, $, config) { }); }; - $scope.initDashboardMeta = function(meta, dashboard) { + $scope.initDashboardMeta = function(meta) { meta.canShare = true; meta.canSave = true; meta.canEdit = true; @@ -76,7 +76,7 @@ function (angular, $, config) { meta.canEdit = false; } - if (dashboard.snapshot) { + if (meta.isSnapshot) { $scope.topNavPartial = 'app/features/dashboard/partials/snapshotTopNav.html'; } diff --git a/src/app/features/dashboard/partials/shareDashboard.html b/src/app/features/dashboard/partials/shareDashboard.html index d00f95355ea..295ac71e0f5 100644 --- a/src/app/features/dashboard/partials/shareDashboard.html +++ b/src/app/features/dashboard/partials/shareDashboard.html @@ -49,7 +49,7 @@