From 8be505305386e4ad715498a534e524c6f2c7fd2e Mon Sep 17 00:00:00 2001 From: Yoram de Langen Date: Mon, 8 May 2023 19:02:31 +0200 Subject: [PATCH] make sure the form copies given config properly Signed-off-by: Yoram de Langen --- src/components/TableauView.vue | 8 ++++++++ src/store.js | 10 +++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/src/components/TableauView.vue b/src/components/TableauView.vue index 69bfa4d..1d7fb62 100644 --- a/src/components/TableauView.vue +++ b/src/components/TableauView.vue @@ -215,12 +215,20 @@ export default { url: '', config: { toolbar: false, + hideTitle: false, + settings: { + tabs: 'no', + toolbar: 'no', + tooltip: 'no', + }, }, }), }, }, mounted() { this.viewTitle = this.title; + + this.form = Object.assign({}, this.config); }, watch: { url(u) { diff --git a/src/store.js b/src/store.js index ae2f4e8..2298574 100644 --- a/src/store.js +++ b/src/store.js @@ -21,7 +21,15 @@ const mutations = { views.push({ title: '', index: views.length, - config: {}, + config: { + url: '', + hideTitle: false, + settings: { + tabs: 'no', + toolbar: 'no', + tooltip: 'no', + }, + }, grid: { x: 0, y: 0, w: 5, h: 7, i: newIndex }, ...args, });