summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-09-25 09:49:20 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-09-25 14:53:28 +0200
commit563b1868a5552e04e7a8b91fab14525429f107d3 (patch)
treec7be93b91dc1fa103f672396577cd01e3cf189d7 /src
parentf3c1f13792d78e3617e3d3f726d1324f3ea576ee (diff)
Multiseelct and comments fix
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/components/Properties/PropertySelect.vue6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/components/Properties/PropertySelect.vue b/src/components/Properties/PropertySelect.vue
index 3769967f..21e28dc2 100644
--- a/src/components/Properties/PropertySelect.vue
+++ b/src/components/Properties/PropertySelect.vue
@@ -38,8 +38,7 @@
<multiselect v-model="matchedOptions" :options="propModel.options" :placeholder="t('contacts', 'Select option')"
class="multiselect-vue property__value" track-by="id" label="name"
- @input="updateValue">
- </multiselect>
+ @input="updateValue" />
</div>
</div>
</template>
@@ -84,6 +83,7 @@ export default {
data() {
return {
+ // value is represented by the ID of the possible options
localValue: this.value
// localType: this.selectType
}
@@ -96,6 +96,8 @@ export default {
// length is one & add one space at the end
return hasTitle + 1 + isLast
},
+
+ // matching value to the options we provide
matchedOptions: {
get() {
let selected = this.propModel.options.find(option => option.id === this.localValue)