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 @@ -