Commit 936fe560 by Torkel Ödegaard

fix: another set of fixes for refresh

parent 11f66bb9
......@@ -148,7 +148,7 @@ export class KeybindingSrv {
this.bind('mod+o', () => {
dashboard.graphTooltip = (dashboard.graphTooltip + 1) % 3;
appEvents.emit('graph-hover-clear');
this.$rootScope.$broadcast('refresh');
dashboard.startRefresh();
});
this.bind('mod+s', e => {
......@@ -257,7 +257,7 @@ export class KeybindingSrv {
});
this.bind('d r', () => {
this.$rootScope.$broadcast('refresh');
dashboard.startRefresh();
});
this.bind('d s', () => {
......
......@@ -117,10 +117,6 @@ export class DashboardCtrl {
return this.dashboard;
}
timezoneChanged() {
this.$rootScope.$broadcast('refresh');
}
getPanelContainer() {
return this;
}
......
......@@ -32,7 +32,7 @@ export class SettingsCtrl {
this.$scope.$on('$destroy', () => {
this.dashboard.updateSubmenuVisibility();
this.$rootScope.$broadcast('refresh');
this.dashboard.startRefresh();
setTimeout(() => {
this.$rootScope.appEvent('dash-scroll', { restore: true });
});
......
......@@ -46,8 +46,7 @@ export class ShareSnapshotCtrl {
$scope.loading = true;
$scope.snapshot.external = external;
$rootScope.$broadcast('refresh');
$scope.dashboard.startRefresh();
$timeout(() => {
$scope.saveSnapshot(external);
......
......@@ -5,7 +5,7 @@
<div class="gf-form">
<label class="gf-form-label width-10">Timezone</label>
<div class="gf-form-select-wrapper">
<select ng-model="ctrl.dashboard.timezone" class='gf-form-input' ng-options="f.value as f.text for f in [{value: '', text: 'Default'}, {value: 'browser', text: 'Local browser time'},{value: 'utc', text: 'UTC'}]" ng-change="timezoneChanged()"></select>
<select ng-model="ctrl.dashboard.timezone" class='gf-form-input' ng-options="f.value as f.text for f in [{value: '', text: 'Default'}, {value: 'browser', text: 'Local browser time'},{value: 'utc', text: 'UTC'}]"></select>
</div>
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment