summaryrefslogtreecommitdiffstats
path: root/webapp
diff options
context:
space:
mode:
authorUdo Walter2019-04-18 17:48:18 +0200
committerUdo Walter2019-04-18 17:48:18 +0200
commit0f6779796233fe7eadbb9dda73640af81d9e7fa2 (patch)
tree48f6a15e06ae571b250cdc0f51358f7faf9ee5c9 /webapp
parentmerge (diff)
downloadbas-0f6779796233fe7eadbb9dda73640af81d9e7fa2.tar.gz
bas-0f6779796233fe7eadbb9dda73640af81d9e7fa2.tar.xz
bas-0f6779796233fe7eadbb9dda73640af81d9e7fa2.zip
[webapp/groups] clear table filters if group id changes
Diffstat (limited to 'webapp')
-rw-r--r--webapp/src/components/GroupModuleClientList.vue7
-rw-r--r--webapp/src/components/GroupModuleGroupList.vue7
2 files changed, 12 insertions, 2 deletions
diff --git a/webapp/src/components/GroupModuleClientList.vue b/webapp/src/components/GroupModuleClientList.vue
index e73a3fb..bc1dc52 100644
--- a/webapp/src/components/GroupModuleClientList.vue
+++ b/webapp/src/components/GroupModuleClientList.vue
@@ -30,7 +30,7 @@
<template>
<div>
<v-divider></v-divider>
- <data-table v-model="selected" :headers="headers" :items="clients" :loading="loading" @dblclick="loadClient($event)" min-width="1300px" copy-button>
+ <data-table ref="table" v-model="selected" :headers="headers" :items="clients" :loading="loading" @dblclick="loadClient($event)" min-width="1300px" copy-button>
<div slot="actions" slot-scope="row" style="text-align: right">
<v-btn icon @click.stop @mousedown="loadClient(row.item)" style="margin: 0"><v-icon>keyboard_arrow_right</v-icon></v-btn>
</div>
@@ -86,6 +86,11 @@ export default {
return this.$store.state.groups.tabChain[this.tabIndex].loading
}
},
+ watch: {
+ groupId () {
+ if (this.$refs.table) this.$refs.table.resetData()
+ }
+ },
methods: {
...mapMutations('groups', ['setActiveTab', 'setTab', 'setDialog']),
loadClient (item) {
diff --git a/webapp/src/components/GroupModuleGroupList.vue b/webapp/src/components/GroupModuleGroupList.vue
index 6226891..2bec2b8 100644
--- a/webapp/src/components/GroupModuleGroupList.vue
+++ b/webapp/src/components/GroupModuleGroupList.vue
@@ -24,7 +24,7 @@
<template>
<div>
<v-divider></v-divider>
- <data-table v-model="selected" :headers="headers" :items="groups" :loading="loading" @dblclick="loadGroup($event)" copy-button>
+ <data-table ref="table" v-model="selected" :headers="headers" :items="groups" :loading="loading" @dblclick="loadGroup($event)" copy-button>
<div slot="actions" slot-scope="row" style="text-align: right">
<v-btn icon @click.stop @mousedown="loadGroup(row.item)" style="margin: 0"><v-icon>keyboard_arrow_right</v-icon></v-btn>
</div>
@@ -73,6 +73,11 @@ export default {
return this.$store.state.groups.tabChain[this.tabIndex].loading
}
},
+ watch: {
+ groupId () {
+ if (this.$refs.table) this.$refs.table.resetData()
+ }
+ },
methods: {
...mapMutations('groups', ['setActiveTab', 'setTab', 'setDialog']),
loadGroup (item) {