Skip to content

Commit

Permalink
fix dashboard variables on resource tab
Browse files Browse the repository at this point in the history
  • Loading branch information
omohokcoj committed Apr 8, 2023
1 parent 3e97a4d commit 88331b6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ui/src/data_resources/components/dashboard_tab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
v-model:data="dataVariables"
:variables="variablesToRender"
class="mx-2 pb-3"
@submit="$refs.layout.reload()"
@submit="reload"
/>
<DashboardLayout
ref="layout"
Expand Down Expand Up @@ -75,6 +75,11 @@ export default {
this.loadDashboard()
},
methods: {
reload () {
this.$nextTick(() => {
this.$refs.layout.reload()
})
},
assignDefaultVariables () {
this.variablesToRender.forEach((variable) => {
this.dataVariables[variable.name] ||= variable.default_value
Expand Down

0 comments on commit 88331b6

Please sign in to comment.