summaryrefslogtreecommitdiffstats
path: root/webapp/src/components/GroupModuleGroupView.vue
diff options
context:
space:
mode:
authorUdo Walter2018-08-04 10:18:59 +0200
committerUdo Walter2018-08-04 10:18:59 +0200
commit132e04e3f71a101f69309b4c9c8b8ed5618b111b (patch)
tree933679f9cdba76fdfccb9c4b5d441fcd29200ea0 /webapp/src/components/GroupModuleGroupView.vue
parentsmall changes (diff)
downloadbas-132e04e3f71a101f69309b4c9c8b8ed5618b111b.tar.gz
bas-132e04e3f71a101f69309b4c9c8b8ed5618b111b.tar.xz
bas-132e04e3f71a101f69309b4c9c8b8ed5618b111b.zip
[groups] small bug fixes
Diffstat (limited to 'webapp/src/components/GroupModuleGroupView.vue')
-rw-r--r--webapp/src/components/GroupModuleGroupView.vue31
1 files changed, 12 insertions, 19 deletions
diff --git a/webapp/src/components/GroupModuleGroupView.vue b/webapp/src/components/GroupModuleGroupView.vue
index 21a5851..bda2922 100644
--- a/webapp/src/components/GroupModuleGroupView.vue
+++ b/webapp/src/components/GroupModuleGroupView.vue
@@ -46,18 +46,10 @@
color="primary"
multiple
item-value="id"
+ item-text="name"
+ small-chips
+ deletable-chips
>
- <template slot="selection" slot-scope="data">
- <v-chip small :selected="data.selected" @input="removeParent(data.item.id)" close>
- {{ data.item.name || data.item.id }}
- </v-chip>
- </template>
- <template slot="item" slot-scope="data">
- <div class="select-item">
- <v-checkbox class="select-item-checkbox" color="primary" :value="parentIds.includes(data.item.id)" hide-details></v-checkbox>
- {{ data.item.name || data.item.id }}
- </div>
- </template>
</v-autocomplete>
<div v-else class="info-input">
<div class="body-2 info-heading"><v-icon>device_hub</v-icon><span>{{ $t('parents') }}</span></div>
@@ -156,9 +148,17 @@ export default {
id: this.group.id,
info: this.info,
parentIds: this.parentIds,
- tabIndex: this.tabIndex
+ tabIndex: this.tabIndex,
+ callback: this.updateUrl
})
this.editMode = false
+ },
+ updateUrl (id) {
+ console.log(id)
+ this.$router.replace({
+ name: 'GroupModule.group',
+ params: { id, noReload: true }
+ })
}
}
}
@@ -172,13 +172,6 @@ export default {
.info-input {
margin: 20px;
}
-.select-item {
- display: flex;
- align-items: center;
-}
-.select-item-checkbox {
- margin-right: 20px;
-}
.info-heading {
display: flex;
align-items: center;