Fix signature theme

This commit is contained in:
Adria Navarro 2024-09-27 14:37:10 +02:00
parent d082c7b77d
commit 5853f3b148
1 changed files with 5 additions and 1 deletions

View File

@ -1,6 +1,6 @@
<script>
import { viewsV2, rowActions } from "stores/builder"
import { admin } from "stores/portal"
import { admin, themeStore } from "stores/portal"
import { Grid } from "@budibase/frontend-core"
import { API } from "api"
import GridCreateEditRowModal from "components/backend/DataTable/modals/grid/GridCreateEditRowModal.svelte"
@ -24,6 +24,9 @@
$: buttons = makeRowActionButtons($rowActions[id])
$: rowActions.refreshRowActions(id)
$: currentTheme = $themeStore?.theme
$: darkMode = !currentTheme.includes("light")
const makeRowActionButtons = actions => {
return (actions || []).map(action => ({
text: action.name,
@ -40,6 +43,7 @@
<Grid
{API}
{darkMode}
{datasource}
allowAddRows
allowDeleteRows