WebConsole: Reverted last changes to AgentModal service. The $root event listener registers only once.
@@ -37,13 +37,11 @@ export default class AgentModal {
controllerAs: 'ctrl'
});
- this.off = $root.$on('user', (event, user) => self.user = user);
+ $root.$on('user', (event, user) => self.user = user);
}
hide() {
this.modal.hide();
- this.off();
- this.off = null;
}
/**
