summaryrefslogtreecommitdiffstats
path: root/webapp/src
diff options
context:
space:
mode:
authorUdo Walter2018-07-31 04:34:39 +0200
committerUdo Walter2018-07-31 04:34:39 +0200
commitcdd692476d356495e21484b7d29e1a74a583dfef (patch)
treed122066ec2bb7191ff63a52e1e445e7cdb1f4e6b /webapp/src
parent[groups] add edit form for groups; add description to groups and clients (diff)
downloadbas-cdd692476d356495e21484b7d29e1a74a583dfef.tar.gz
bas-cdd692476d356495e21484b7d29e1a74a583dfef.tar.xz
bas-cdd692476d356495e21484b7d29e1a74a583dfef.zip
[webapp/groups] small bugfix
Diffstat (limited to 'webapp/src')
-rw-r--r--webapp/src/components/GroupModuleGroupView.vue16
1 files changed, 12 insertions, 4 deletions
diff --git a/webapp/src/components/GroupModuleGroupView.vue b/webapp/src/components/GroupModuleGroupView.vue
index 4126b2c..27476dd 100644
--- a/webapp/src/components/GroupModuleGroupView.vue
+++ b/webapp/src/components/GroupModuleGroupView.vue
@@ -44,7 +44,7 @@
</div>
</v-flex>
<v-flex sm6 xs12>
- <v-select
+ <v-autocomplete
v-if="editMode"
class="info-input"
:items="groupList"
@@ -52,16 +52,16 @@
hide-details
offset-y
label="Parents"
- box color="primary"
+ box
+ color="primary"
multiple
- autocomplete
>
<template slot="selection" slot-scope="data">
<v-chip small :color="chipColor" :text-color="chipTextColor" :selected="data.selected" @input="removeParent(data.item.value)" close>
{{ data.item.text }}
</v-chip>
</template>
- </v-select>
+ </v-autocomplete>
<div v-else class="info-input">
<div class="body-2">Parents</div>
<template v-if="group.parents.length > 0">
@@ -104,6 +104,11 @@ export default {
}
}
},
+ watch: {
+ groupId (v) {
+ this.editMode = false
+ }
+ },
computed: {
groupList () {
return this.$store.state.groups.groupList
@@ -111,6 +116,9 @@ export default {
group () {
return this.$store.state.groups.groupChain[this.tabIndex]
},
+ groupId () {
+ return this.group.id
+ },
chipColor () {
return this.$store.state.settings.dark ? 'grey darken-1' : 'white'
},