diff --git a/components/DateInput.vue b/components/DateInput.vue
index 30381170..0a42b4d1 100644
--- a/components/DateInput.vue
+++ b/components/DateInput.vue
@@ -45,6 +45,7 @@ v-col(cols=12)
:label="$t('event.from')"
:value="fromHour"
:disabled='!value.from'
+ readonly
:prepend-icon="mdiClockTimeFourOutline"
:rules="[$validators.required('event.from')]"
v-bind="attrs"
@@ -70,6 +71,7 @@ v-col(cols=12)
:label="$t('event.due')"
:value="dueHour"
:disabled='!fromHour'
+ readonly
:prepend-icon="mdiClockTimeEightOutline"
v-bind="attrs"
v-on="on")
diff --git a/components/WhereInput.vue b/components/WhereInput.vue
index 42d08e6b..900d5f6f 100644
--- a/components/WhereInput.vue
+++ b/components/WhereInput.vue
@@ -16,8 +16,8 @@ v-row
@change='selectPlace')
template(v-slot:item="{ item, attrs, on }")
v-list-item(v-bind='attrs' v-on='on')
- v-list-item-content(two-line v-if='item.create && search')
- v-list-item-title {{item.name}}
+ v-list-item-content(two-line v-if='item.create')
+ v-list-item-title {{$t('common.add')}} {{item.name}}
v-list-item-content(two-line v-else)
v-list-item-title(v-text='item.name')
v-list-item-subtitle(v-text='item.address')
@@ -76,7 +76,7 @@ export default {
this.places = await this.$axios.$get(`place?search=${search}`)
if (!search && this.places.length) { return this.places }
const matches = this.places.find(p => search === p.name.toLocaleLowerCase())
- if (!matches) {
+ if (!matches && search) {
this.places.unshift({ create: true, name: ev.target.value.trim() })
}
}, 100),