Reset search when switching categories

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2018-05-30 11:56:47 +02:00
parent 5326ba0064
commit 5128f7ea30
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
1 changed files with 1 additions and 0 deletions

View File

@ -90,6 +90,7 @@ export default {
// watch url change and group select
category: function (val, old) {
this.$store.commit('resetApps');
this.setSearch('');
this.$store.dispatch('getApps', { category: this.category });
}
},