From 0fd9bcf0140caad3a7a6fae251622e5e0b8f39f1 Mon Sep 17 00:00:00 2001 From: lesion Date: Mon, 10 Apr 2023 18:34:10 +0200 Subject: [PATCH] do not enable advanced button when no place name --- components/WhereInput.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/WhereInput.vue b/components/WhereInput.vue index 0725e8a3..e86476ec 100644 --- a/components/WhereInput.vue +++ b/components/WhereInput.vue @@ -82,7 +82,7 @@ export default { return { mdiMap, mdiMapMarker, mdiPlus, mdiCog, mdiLink, mdiCloseCircle, mdiLaptopAccount, places: [], - place: { isNew: false }, + place: { isNew: false, name: '' }, placeName: '', disableAddress: true, whereInputAdvancedDialog: false, @@ -93,6 +93,8 @@ export default { ...mapState(['settings']), showAdvancedDialogButton () { + if (!this.place.name) return false + // do not show advanced dialog button in case geolocation and online events are not allowed if (!(this.settings.allow_geolocation || this.settings.allow_online_event)) { return false