Display signature on on views when dark mode
This commit is contained in:
parent
4c6094ea94
commit
d60588d323
|
@ -1,6 +1,6 @@
|
||||||
<script>
|
<script>
|
||||||
import { viewsV2 } from "stores/builder"
|
import { viewsV2 } from "stores/builder"
|
||||||
import { admin } from "stores/portal"
|
import { admin, themeStore } from "stores/portal"
|
||||||
import { Grid } from "@budibase/frontend-core"
|
import { Grid } from "@budibase/frontend-core"
|
||||||
import { API } from "api"
|
import { API } from "api"
|
||||||
import GridCreateEditRowModal from "components/backend/DataTable/modals/grid/GridCreateEditRowModal.svelte"
|
import GridCreateEditRowModal from "components/backend/DataTable/modals/grid/GridCreateEditRowModal.svelte"
|
||||||
|
@ -16,6 +16,9 @@
|
||||||
tableId: $viewsV2.selected?.tableId,
|
tableId: $viewsV2.selected?.tableId,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$: currentTheme = $themeStore?.theme
|
||||||
|
$: darkMode = !currentTheme.includes("light")
|
||||||
|
|
||||||
const handleGridViewUpdate = async e => {
|
const handleGridViewUpdate = async e => {
|
||||||
viewsV2.replaceView(id, e.detail)
|
viewsV2.replaceView(id, e.detail)
|
||||||
}
|
}
|
||||||
|
@ -25,6 +28,7 @@
|
||||||
<Grid
|
<Grid
|
||||||
{API}
|
{API}
|
||||||
{datasource}
|
{datasource}
|
||||||
|
{darkMode}
|
||||||
allowAddRows
|
allowAddRows
|
||||||
allowDeleteRows
|
allowDeleteRows
|
||||||
showAvatars={false}
|
showAvatars={false}
|
||||||
|
|
Loading…
Reference in New Issue