1
0
Fork 0
mirror of https://gitlab.com/bramw/baserow.git synced 2025-05-17 14:22:02 +00:00
bramw_baserow/web-frontend/modules/dashboard/components/WidgetBoard.vue

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

44 lines
842 B
Vue
Raw Permalink Normal View History

2024-12-25 08:40:24 +00:00
<template>
<div>
<DashboardWidget
v-for="widget in widgets"
:key="widget.id"
:widget="widget"
:dashboard="dashboard"
:store-prefix="storePrefix"
2024-12-25 08:40:24 +00:00
/>
</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: '',
},
2024-12-25 08:40:24 +00:00
},
computed: {
isEditMode() {
return this.$store.getters[
`${this.storePrefix}dashboardApplication/isEditMode`
]
},
widgets() {
return this.$store.getters[
`${this.storePrefix}dashboardApplication/getWidgets`
]
},
2024-12-25 08:40:24 +00:00
},
}
</script>