Add client feature to ensure full backwards compatibility with themes

This commit is contained in:
Andrew Kingston 2024-10-24 10:06:04 +01:00
parent 27d42a9bfe
commit 90fb36315f
No known key found for this signature in database
2 changed files with 5 additions and 2 deletions

View File

@ -19,7 +19,7 @@
import { findComponent, findComponentPath } from "helpers/components" import { findComponent, findComponentPath } from "helpers/components"
import { isActive, goto } from "@roxi/routify" import { isActive, goto } from "@roxi/routify"
import { ClientAppSkeleton } from "@budibase/frontend-core" import { ClientAppSkeleton } from "@budibase/frontend-core"
import { getThemeClassNames } from "@budibase/shared-core" import { getThemeClassNames, ThemeClassPrefix } from "@budibase/shared-core"
let iframe let iframe
let layout let layout
@ -48,7 +48,9 @@
layout, layout,
screen, screen,
selectedComponentId, selectedComponentId,
theme: $themeStore.theme, theme: $appStore.clientFeatures.unifiedThemes
? $themeStore.theme
: `${ThemeClassPrefix}${$themeStore.theme}`,
customTheme: $themeStore.customTheme, customTheme: $themeStore.customTheme,
previewDevice: $previewStore.previewDevice, previewDevice: $previewStore.previewDevice,
messagePassing: $appStore.clientFeatures.messagePassing, messagePassing: $appStore.clientFeatures.messagePassing,

View File

@ -1,6 +1,7 @@
{ {
"features": { "features": {
"spectrumThemes": true, "spectrumThemes": true,
"unifiedTheme": true,
"intelligentLoading": true, "intelligentLoading": true,
"deviceAwareness": true, "deviceAwareness": true,
"state": true, "state": true,