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:
parent
131411104c
commit
f4a1f7b176
20 changed files with 441 additions and 89 deletions
web-frontend/modules/dashboard/components/data_source
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue