diff options
Diffstat (limited to 'src/components/Properties')
-rw-r--r-- | src/components/Properties/PropertyDateTime.vue | 6 | ||||
-rw-r--r-- | src/components/Properties/PropertyMultipleText.vue | 6 | ||||
-rw-r--r-- | src/components/Properties/PropertyText.vue | 6 |
3 files changed, 15 insertions, 3 deletions
diff --git a/src/components/Properties/PropertyDateTime.vue b/src/components/Properties/PropertyDateTime.vue index db312bcd..79064bf4 100644 --- a/src/components/Properties/PropertyDateTime.vue +++ b/src/components/Properties/PropertyDateTime.vue @@ -29,7 +29,7 @@ <div class="property__row"> <!-- type selector --> <multiselect v-if="propModel.options" v-model="localType" - :options="propModel.options" :searchable="false" :placeholder="t('contacts', 'Select type')" + :options="options" :searchable="false" :placeholder="t('contacts', 'Select type')" class="multiselect-vue property__label" track-by="id" label="name" @input="updateType" /> @@ -148,6 +148,10 @@ export default { default: '', required: true }, + options: { + type: Array, + default: () => [] + }, property: { type: Object, default: () => {}, diff --git a/src/components/Properties/PropertyMultipleText.vue b/src/components/Properties/PropertyMultipleText.vue index 6804c9e5..0196adf4 100644 --- a/src/components/Properties/PropertyMultipleText.vue +++ b/src/components/Properties/PropertyMultipleText.vue @@ -29,7 +29,7 @@ <div class="property__row"> <!-- type selector --> <multiselect v-if="propModel.options" v-model="localType" - :options="propModel.options" :searchable="false" :placeholder="t('contacts', 'Select type')" + :options="options" :searchable="false" :placeholder="t('contacts', 'Select type')" class="multiselect-vue property__label" track-by="id" label="name" @input="updateType" /> @@ -96,6 +96,10 @@ export default { default: () => [], required: true }, + options: { + type: Array, + default: () => [] + }, property: { type: Object, default: () => {}, diff --git a/src/components/Properties/PropertyText.vue b/src/components/Properties/PropertyText.vue index d5488bab..531e8e81 100644 --- a/src/components/Properties/PropertyText.vue +++ b/src/components/Properties/PropertyText.vue @@ -29,7 +29,7 @@ <div class="property__row"> <!-- type selector --> <multiselect v-if="propModel.options" v-model="localType" - :options="propModel.options" :searchable="false" :placeholder="t('contacts', 'Select type')" + :options="options" :searchable="false" :placeholder="t('contacts', 'Select type')" class="multiselect-vue property__label" track-by="id" label="name" @input="updateType" /> @@ -76,6 +76,10 @@ export default { default: '', required: true }, + options: { + type: Array, + default: () => [] + }, isFirstProperty: { type: Boolean, default: true |