BigW Consortium Gitlab

Commit c7cecae6 by Phil Hughes

added eventhub to emit update tokens event

parent 7eabb7a9
......@@ -3,6 +3,7 @@
/* global BoardService */
import FilteredSearchBoards from './filtered_search_boards';
import eventHub from './eventhub';
window.Vue = require('vue');
window.Vue.use(require('vue-resource'));
......@@ -65,10 +66,10 @@ $(() => {
this.filterManager = new FilteredSearchBoards(Store.filter, true);
// Listen for updateTokens event
this.$on('updateTokens', this.updateTokens);
eventHub.$on('updateTokens', this.updateTokens);
},
beforeDestroy() {
this.$off('updateTokens', this.updateTokens);
eventHub.$off('updateTokens', this.updateTokens);
},
mounted () {
Store.disabled = this.disabled;
......
/* global Vue */
import eventHub from '../eventhub';
(() => {
const Store = gl.issueBoards.BoardsStore;
......@@ -54,7 +56,7 @@
Store.updateFiltersUrl();
gl.IssueBoardsApp.$emit('updateTokens');
eventHub.$emit('updateTokens');
},
labelStyle(label) {
return {
......
import Vue from 'vue';
export default new Vue();
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