提交 ab7bfff0 编写于 作者: P Phil Hughes

Make changing the URL optional - future proof ourselves for the modal window

上级 107c39a6
/* eslint-disable one-var, quote-props, comma-dangle, space-before-function-paren */
/* eslint-disable one-var, quote-props, comma-dangle, space-before-function-paren, no-new */
/* global Vue */
/* global BoardService */
import FilteredSearchBoards from './filtered_search_boards';
window.Vue = require('vue');
window.Vue.use(require('vue-resource'));
import FilteredSearchBoards from './filtered_search_boards';
require('./models/issue');
require('./models/label');
require('./models/list');
......@@ -61,7 +62,7 @@ $(() => {
created () {
gl.boardService = new BoardService(this.endpoint, this.bulkUpdatePath, this.boardId);
new FilteredSearchBoards(Store.filter);
new FilteredSearchBoards(Store.filter, true);
},
mounted () {
Store.disabled = this.disabled;
......
export default class FilteredSearchBoards extends gl.FilteredSearchManager {
constructor(store) {
constructor(store, updateUrl = false) {
super('boards');
this.store = store;
this.updateUrl = updateUrl;
this.isHandledAsync = true;
}
updateObject(path) {
this.store.path = path.substr(1);
gl.issueBoards.BoardsStore.updateFiltersUrl();
if (this.updateUrl) {
gl.issueBoards.BoardsStore.updateFiltersUrl();
}
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册