summaryrefslogtreecommitdiffstats
path: root/webapp/src/components/SelectBox.vue
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/src/components/SelectBox.vue')
-rw-r--r--webapp/src/components/SelectBox.vue6
1 files changed, 5 insertions, 1 deletions
diff --git a/webapp/src/components/SelectBox.vue b/webapp/src/components/SelectBox.vue
index 900b604..d01429e 100644
--- a/webapp/src/components/SelectBox.vue
+++ b/webapp/src/components/SelectBox.vue
@@ -12,7 +12,7 @@
</i18n>
<template>
- <v-input class="v-text-field select-input" :class="inputClasses" :hide-details="hideDetails" :prepend-icon="prependIcon">
+ <v-input class="v-text-field select-input" :class="inputClasses" :hide-details="hideDetails" :prepend-icon="prependIcon" :value="value" :rules="rules">
<v-menu v-model="menu" offset-y :close-on-content-click="false" lazy class="select-menu non-selectable" :nudge-bottom="1">
<div slot="activator" class="select-input-content">
<label v-if="label !== undefined && (!singleLine || (singleLine && value.length === 0))"
@@ -107,6 +107,10 @@ export default {
prependIcon: {
type: String
},
+ rules: {
+ type: Array,
+ default: () => []
+ },
singleSelect: {
type: Boolean,
default: false