summaryrefslogtreecommitdiffstats
path: root/webapp/src/components/GroupModuleClientView.vue
diff options
context:
space:
mode:
authorUdo Walter2018-08-07 05:25:44 +0200
committerUdo Walter2018-08-07 05:25:44 +0200
commit8f64402237a74ddb380b7e9650fa5897505a665f (patch)
tree692971f50fa7d442bf6fa3be959e72f588626774 /webapp/src/components/GroupModuleClientView.vue
parentmerge (diff)
downloadbas-8f64402237a74ddb380b7e9650fa5897505a665f.tar.gz
bas-8f64402237a74ddb380b7e9650fa5897505a665f.tar.xz
bas-8f64402237a74ddb380b7e9650fa5897505a665f.zip
[groups] add ability to show all nested children and not just direkt children + bug fixes
Diffstat (limited to 'webapp/src/components/GroupModuleClientView.vue')
-rw-r--r--webapp/src/components/GroupModuleClientView.vue13
1 files changed, 7 insertions, 6 deletions
diff --git a/webapp/src/components/GroupModuleClientView.vue b/webapp/src/components/GroupModuleClientView.vue
index 370eb48..31548b4 100644
--- a/webapp/src/components/GroupModuleClientView.vue
+++ b/webapp/src/components/GroupModuleClientView.vue
@@ -131,9 +131,6 @@ export default {
groupIds: []
}
},
- created () {
- if (!this.client.id) this.editInfo()
- },
watch: {
client (newValue, oldValue) {
if (!newValue.id) this.editInfo()
@@ -152,9 +149,10 @@ export default {
},
cancelEdit () {
this.editMode = false
- if (this.client.id) return
- this.$store.commit('groups/deleteFromTabChain', { index: this.tabIndex, count: 1 })
- this.$store.commit('groups/setActiveTab', this.tabIndex - 1)
+ if (this.client.id === 'create') {
+ this.$store.commit('groups/deleteFromTabChain', { index: this.tabIndex, count: 1 })
+ this.$store.commit('groups/setActiveTab', this.tabIndex - 1)
+ }
},
saveInfo () {
this.$store.dispatch('groups/saveClient', {
@@ -172,6 +170,9 @@ export default {
params: { id, noReload: true }
})
}
+ },
+ created () {
+ if (this.client.id === 'create') this.editInfo()
}
}
</script>