1
0
Fork 0
mirror of https://gitlab.com/bramw/baserow.git synced 2025-05-18 14:51:02 +00:00

Add support for dashboards in templates

This commit is contained in:
Petr Stribny 2025-01-07 17:32:50 +00:00
parent 131411104c
commit f4a1f7b176
20 changed files with 441 additions and 89 deletions
web-frontend/modules/dashboard/components/data_source

View file

@ -149,6 +149,11 @@ export default {
type: Object,
required: true,
},
storePrefix: {
type: String,
required: false,
default: '',
},
},
data() {
return {
@ -166,9 +171,9 @@ export default {
},
computed: {
integration() {
return this.$store.getters['dashboardApplication/getIntegrationById'](
this.dataSource.integration_id
)
return this.$store.getters[
`${this.storePrefix}dashboardApplication/getIntegrationById`
](this.dataSource.integration_id)
},
databases() {
return this.integration.context_data.databases