1
0
Fork 0
mirror of https://gitlab.com/bramw/baserow.git synced 2025-01-15 21:18:41 +00:00
bramw_baserow/web-frontend/modules/dashboard/components/WidgetBoard.vue
2025-01-07 17:32:50 +00:00

43 lines
842 B
Vue

<template>
<div>
<DashboardWidget
v-for="widget in widgets"
:key="widget.id"
:widget="widget"
:dashboard="dashboard"
:store-prefix="storePrefix"
/>
</div>
</template>
<script>
import DashboardWidget from '@baserow/modules/dashboard/components/widget/DashboardWidget'
export default {
name: 'WidgetBoard',
components: { DashboardWidget },
props: {
dashboard: {
type: Object,
required: true,
},
storePrefix: {
type: String,
required: false,
default: '',
},
},
computed: {
isEditMode() {
return this.$store.getters[
`${this.storePrefix}dashboardApplication/isEditMode`
]
},
widgets() {
return this.$store.getters[
`${this.storePrefix}dashboardApplication/getWidgets`
]
},
},
}
</script>