feat(panel): added new panel event panel-initialized

This commit is contained in:
Torkel Ödegaard
2016-04-22 11:41:56 +02:00
parent 297c829bdc
commit dfe36fb702
2 changed files with 5 additions and 2 deletions
@@ -36,7 +36,7 @@ function (angular, _, $) {
self.update(payload);
});
$scope.onAppEvent('panel-instantiated', function(evt, payload) {
$scope.onAppEvent('panel-initialized', function(evt, payload) {
self.registerPanel(payload.scope);
});
+4 -1
View File
@@ -50,8 +50,11 @@ export class PanelCtrl {
}
init() {
this.publishAppEvent('panel-instantiated', {scope: this.$scope});
this.calculatePanelHeight();
this.publishAppEvent('panel-initialized', {scope: this.$scope});
this.events.emit('panel-initialized');
this.refresh();
}