mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
refactor(): dashboard row model and hunting down memory leak
This commit is contained in:
@@ -17,9 +17,10 @@ export class ThresholdFormCtrl {
|
||||
this.disabled = true;
|
||||
}
|
||||
|
||||
$scope.$on("$destroy", () => {
|
||||
var unbindDestroy = $scope.$on("$destroy", () => {
|
||||
this.panelCtrl.editingThresholds = false;
|
||||
this.panelCtrl.render();
|
||||
unbindDestroy();
|
||||
});
|
||||
|
||||
this.panelCtrl.editingThresholds = true;
|
||||
|
||||
Reference in New Issue
Block a user