diff --git a/public/app/core/directives/dash_class.js b/public/app/core/directives/dash_class.js index b7323ea0161..69f1129f636 100644 --- a/public/app/core/directives/dash_class.js +++ b/public/app/core/directives/dash_class.js @@ -35,8 +35,16 @@ function (_, $, coreModule) { elem.toggleClass('playlist-active', newValue === true); }); - $scope.$watch('ctrl.dashboardViewState.state.editView', function(newValue) { - elem.toggleClass('dashboard-settings-open', _.isString(newValue)); + $scope.$watch('ctrl.dashboardViewState.state.editview', function(newValue) { + if (newValue) { + elem.toggleClass('dashboard-page--settings-opening', _.isString(newValue)); + setTimeout(function() { + elem.toggleClass('dashboard-page--settings-open', _.isString(newValue)); + }, 10); + } else { + elem.removeClass('dashboard-page--settings-opening'); + elem.removeClass('dashboard-page--settings-open'); + } }); } }; diff --git a/public/app/features/dashboard/dashnav/dashnav.html b/public/app/features/dashboard/dashnav/dashnav.html index 260a3783a67..f06f997ce8e 100644 --- a/public/app/features/dashboard/dashnav/dashnav.html +++ b/public/app/features/dashboard/dashnav/dashnav.html @@ -41,20 +41,9 @@ - + diff --git a/public/app/features/dashboard/dashnav/dashnav.ts b/public/app/features/dashboard/dashnav/dashnav.ts index 57f75b1388d..f291913323a 100644 --- a/public/app/features/dashboard/dashnav/dashnav.ts +++ b/public/app/features/dashboard/dashnav/dashnav.ts @@ -37,8 +37,8 @@ export class DashNavCtrl { this.contextSrv.toggleSideMenu(); } - openEditView(editview) { - var search = _.extend(this.$location.search(), {editview: editview}); + openSettings() { + var search = _.extend(this.$location.search(), {editview: 'general'}); this.$location.search(search); } diff --git a/public/app/features/dashboard/settings/settings.html b/public/app/features/dashboard/settings/settings.html index b2371960a26..0781b0c109d 100644 --- a/public/app/features/dashboard/settings/settings.html +++ b/public/app/features/dashboard/settings/settings.html @@ -1,7 +1,11 @@ -

Settings