Skip to content

Commit

Permalink
make sure the form copies given config properly
Browse files Browse the repository at this point in the history
Signed-off-by: Yoram de Langen <[email protected]>
  • Loading branch information
yoramdelangen committed May 8, 2023
1 parent 5d54b1e commit 8be5053
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
8 changes: 8 additions & 0 deletions src/components/TableauView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
10 changes: 9 additions & 1 deletion src/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
Expand Down

0 comments on commit 8be5053

Please sign in to comment.