Fix multi-tag filter

This commit is contained in:
Marcel Klehr 2019-08-25 18:36:41 +02:00
parent 6932f0a896
commit 09d2b85369
2 changed files with 5 additions and 2 deletions

View File

@ -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);

View File

@ -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 }) {