2017-03-10 12:08:19 +00:00
|
|
|
import FilteredSearchBoards from '../../filtered_search_boards';
|
2017-03-13 11:46:43 +00:00
|
|
|
import FilteredSearchContainer from '../../../filtered_search/container';
|
2017-02-06 12:23:40 +00:00
|
|
|
|
2017-03-10 12:08:19 +00:00
|
|
|
export default {
|
2017-02-06 11:50:02 +00:00
|
|
|
name: 'modal-filters',
|
2017-03-13 11:46:43 +00:00
|
|
|
props: {
|
|
|
|
store: {
|
|
|
|
type: Object,
|
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
},
|
2017-03-10 12:08:19 +00:00
|
|
|
mounted() {
|
2017-03-10 17:40:38 +00:00
|
|
|
FilteredSearchContainer.container = this.$el;
|
|
|
|
|
2017-03-14 09:34:55 +00:00
|
|
|
this.filteredSearch = new FilteredSearchBoards(this.store);
|
2017-05-22 19:58:23 +00:00
|
|
|
this.filteredSearch.setup();
|
2017-03-15 10:52:49 +00:00
|
|
|
this.filteredSearch.removeTokens();
|
2017-03-21 14:44:51 +00:00
|
|
|
this.filteredSearch.handleInputPlaceholder();
|
|
|
|
this.filteredSearch.toggleClearSearchButton();
|
2017-02-06 11:50:02 +00:00
|
|
|
},
|
2017-03-17 11:12:11 +00:00
|
|
|
destroyed() {
|
2017-03-13 13:05:32 +00:00
|
|
|
this.filteredSearch.cleanup();
|
2017-03-10 17:40:38 +00:00
|
|
|
FilteredSearchContainer.container = document;
|
2017-03-13 11:46:43 +00:00
|
|
|
this.store.path = '';
|
2017-02-06 11:50:02 +00:00
|
|
|
},
|
2017-03-10 12:08:19 +00:00
|
|
|
template: '#js-board-modal-filter',
|
|
|
|
};
|