1
0
Fork 0
mirror of synced 2024-06-29 03:20:34 +12:00

Add feature flag to determine support for previewing on different device sizes

This commit is contained in:
Andrew Kingston 2021-09-08 09:46:20 +01:00
parent 35abb39b24
commit c5cd2fb64a
3 changed files with 6 additions and 2 deletions

View file

@ -43,6 +43,7 @@ const INITIAL_FRONTEND_STATE = {
deviceAwareness: false,
state: false,
customThemes: false,
devicePreview: false,
},
currentFrontEndType: "none",
selectedScreenId: "",

View file

@ -152,7 +152,9 @@
{#if $currentAsset}
<div class="preview-header">
<ComponentSelectionList />
<DevicePreviewSelect />
{#if $store.clientFeatures.devicePreview}
<DevicePreviewSelect />
{/if}
{#if $store.clientFeatures.customThemes}
<ThemeEditor />
{:else if $store.clientFeatures.spectrumThemes}

View file

@ -4,7 +4,8 @@
"intelligentLoading": true,
"deviceAwareness": true,
"state": true,
"customThemes": true
"customThemes": true,
"devicePreview": true
},
"layout": {
"name": "Layout",