Commit f44bac30 authored by Clement Ho's avatar Clement Ho

[skip ci] use dot notation instead of colon for namespace

parent 4d41405c
......@@ -42,10 +42,10 @@ export default {
},
created() {
// Get events from glDropdown
eventHub.$on('sidebar:removeUser', this.store.removeUserId.bind(this.store));
eventHub.$on('sidebar:addUser', this.store.addUserId.bind(this.store));
eventHub.$on('sidebar:removeAllUsers', this.store.removeAllUserIds.bind(this.store));
eventHub.$on('sidebar:saveUsers', this.saveUsers);
eventHub.$on('sidebar.removeUser', this.store.removeUserId.bind(this.store));
eventHub.$on('sidebar.addUser', this.store.addUserId.bind(this.store));
eventHub.$on('sidebar.removeAllUsers', this.store.removeAllUserIds.bind(this.store));
eventHub.$on('sidebar.saveUsers', this.saveUsers);
},
beforeMount() {
const element = this.$el;
......
......@@ -277,7 +277,7 @@ import eventHub from './sidebar/event_hub';
defaultLabel: defaultLabel,
hidden: function(e) {
if ($dropdown.hasClass('js-multiselect')) {
eventHub.$emit('sidebar:saveUsers');
eventHub.$emit('sidebar.saveUsers');
}
$selectbox.hide();
......@@ -302,10 +302,10 @@ import eventHub from './sidebar/event_hub';
const id = parseInt(element.value, 10);
element.remove();
});
eventHub.$emit('sidebar:removeAllUsers');
eventHub.$emit('sidebar.removeAllUsers');
} else if (isActive) {
// user selected
eventHub.$emit('sidebar:addUser', user.id);
eventHub.$emit('sidebar.addUser', user.id);
// Remove unassigned selection (if it was previously selected)
const unassignedSelected = $dropdown.closest('.selectbox')
......@@ -321,7 +321,7 @@ import eventHub from './sidebar/event_hub';
}
// User unselected
eventHub.$emit('sidebar:removeUser', user.id);
eventHub.$emit('sidebar.removeUser', user.id);
}
}
......
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