mirror of https://github.com/nextcloud/bookmarks
Fix multi-tag filter
This commit is contained in:
parent
6932f0a896
commit
09d2b85369
|
@ -81,7 +81,10 @@ export default {
|
|||
this.$store.dispatch(actions.FILTER_BY_FOLDER, route.params.folder);
|
||||
break;
|
||||
case 'tags':
|
||||
this.$store.dispatch(actions.FILTER_BY_TAGS, route.params.tags);
|
||||
this.$store.dispatch(
|
||||
actions.FILTER_BY_TAGS,
|
||||
route.params.tags.split(',')
|
||||
);
|
||||
break;
|
||||
case 'search':
|
||||
this.$store.dispatch(actions.FILTER_BY_SEARCH, route.params.search);
|
||||
|
|
|
@ -617,7 +617,7 @@ export default new Vuex.Store({
|
|||
return dispatch(actions.FETCH_PAGE);
|
||||
},
|
||||
[actions.FILTER_BY_TAGS]({ dispatch, commit }, tags) {
|
||||
commit(mutations.SET_QUERY, { tags });
|
||||
commit(mutations.SET_QUERY, { tags, conjunction: 'and' });
|
||||
return dispatch(actions.FETCH_PAGE);
|
||||
},
|
||||
[actions.FILTER_BY_UNTAGGED]({ dispatch, commit }) {
|
||||
|
|
Loading…
Reference in New Issue