Commit 39e38a58 authored by Clement Ho's avatar Clement Ho

[skip ci] add eventHub.

parent cb62eca8
......@@ -105,6 +105,12 @@ require('./sidebar/remove_issue');
eventHub.$on('sidebar.removeAllUsers', this.removeAllUsers);
eventHub.$on('sidebar.saveUsers', this.saveUsers);
},
beforeDestroy() {
eventHub.$off('sidebar.removeUser', this.removeUser);
eventHub.$off('sidebar.addUser', this.addUser);
eventHub.$off('sidebar.removeAllUsers', this.removeAllUsers);
eventHub.$off('sidebar.saveUsers', this.saveUsers);
},
mounted () {
new IssuableContext(this.currentUser);
new MilestoneSelect();
......
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