28 lines
741 B
JavaScript
28 lines
741 B
JavaScript
import FilteredSearchBoards from '../../filtered_search_boards';
|
|
import FilteredSearchContainer from '../../../filtered_search/container';
|
|
|
|
export default {
|
|
name: 'modal-filters',
|
|
props: {
|
|
store: {
|
|
type: Object,
|
|
required: true,
|
|
},
|
|
},
|
|
mounted() {
|
|
FilteredSearchContainer.container = this.$el;
|
|
|
|
this.filteredSearch = new FilteredSearchBoards(this.store);
|
|
this.filteredSearch.setup();
|
|
this.filteredSearch.removeTokens();
|
|
this.filteredSearch.handleInputPlaceholder();
|
|
this.filteredSearch.toggleClearSearchButton();
|
|
},
|
|
destroyed() {
|
|
this.filteredSearch.cleanup();
|
|
FilteredSearchContainer.container = document;
|
|
this.store.path = '';
|
|
},
|
|
template: '#js-board-modal-filter',
|
|
};
|