Sfoglia il codice sorgente

refactor: minor change to #10199

Torkel Ödegaard 8 anni fa
parent
commit
90c5a8435f
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      public/app/core/services/keybindingSrv.ts

+ 2 - 2
public/app/core/services/keybindingSrv.ts

@@ -81,7 +81,7 @@ export class KeybindingSrv {
     this.bind('mod+o', () => {
       dashboard.graphTooltip = (dashboard.graphTooltip + 1) % 3;
       appEvents.emit('graph-hover-clear');
-      scope.broadcastRefresh();
+      this.$rootScope.$broadcast('refresh');
     });
 
     this.bind('mod+s', e => {
@@ -189,7 +189,7 @@ export class KeybindingSrv {
     });
 
     this.bind('d r', () => {
-      scope.ctrl.timeSrv.refreshDashboard();
+      this.$rootScope.$broadcast('refresh');
     });
 
     this.bind('d s', () => {