diff --git a/public/app/core/directives/dash_edit_link.js b/public/app/core/directives/dash_edit_link.js index a4c1ad53b3c..d9a439b95c2 100644 --- a/public/app/core/directives/dash_edit_link.js +++ b/public/app/core/directives/dash_edit_link.js @@ -25,7 +25,6 @@ function ($, angular, coreModule) { function hideEditorPane(hideToShowOtherView) { if (editorScope) { editorScope.dismiss(hideToShowOtherView); - scope.appEvent('dash-editor-hidden'); } } @@ -61,7 +60,15 @@ function ($, angular, coreModule) { var urlParams = $location.search(); if (options.editview === urlParams.editview) { delete urlParams.editview; - $location.search(urlParams); + + // even though we always are in apply phase here + // some angular bug is causing location search updates to + // not happen always so this is a hack fix or that + setTimeout(function() { + $rootScope.$apply(function() { + $location.search(urlParams); + }); + }); } } }; diff --git a/public/app/features/dashboard/time_srv.ts b/public/app/features/dashboard/time_srv.ts index 1385751decc..abde4152b63 100644 --- a/public/app/features/dashboard/time_srv.ts +++ b/public/app/features/dashboard/time_srv.ts @@ -129,10 +129,13 @@ class TimeSrv { } // update url + var params = this.$location.search(); if (interval) { - var params = this.$location.search(); params.refresh = interval; this.$location.search(params); + } else if (params.refresh) { + delete params.refresh; + this.$location.search(params); } } diff --git a/public/app/features/dashboard/timepicker/dropdown.html b/public/app/features/dashboard/timepicker/dropdown.html index a1842dbe277..59b58679d65 100644 --- a/public/app/features/dashboard/timepicker/dropdown.html +++ b/public/app/features/dashboard/timepicker/dropdown.html @@ -5,7 +5,7 @@
- +