Add client feature to ensure full backwards compatibility with themes
This commit is contained in:
parent
27d42a9bfe
commit
90fb36315f
|
@ -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,
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
{
|
{
|
||||||
"features": {
|
"features": {
|
||||||
"spectrumThemes": true,
|
"spectrumThemes": true,
|
||||||
|
"unifiedTheme": true,
|
||||||
"intelligentLoading": true,
|
"intelligentLoading": true,
|
||||||
"deviceAwareness": true,
|
"deviceAwareness": true,
|
||||||
"state": true,
|
"state": true,
|
||||||
|
|
Loading…
Reference in New Issue