fix: move Labs behind unfinished features flag

This commit is contained in:
Mo
2022-03-10 10:03:43 -06:00
parent ceedaade82
commit 7e0e620ab8
2 changed files with 10 additions and 6 deletions

View File

@@ -59,11 +59,13 @@ export const createEditorMenuGroups = (
feature.area === ComponentArea.Editor
)
.forEach((editorFeature) => {
if (
!editors.find(
(editor) => editor.identifier === editorFeature.identifier
)
) {
const notInstalled = !editors.find(
(editor) => editor.identifier === editorFeature.identifier
);
const isExperimental = application.features.isExperimentalFeature(
editorFeature.identifier
);
if (notInstalled && !isExperimental) {
editorItems[getEditorGroup(editorFeature)].push({
name: editorFeature.name as string,
isEntitled: false,

View File

@@ -19,7 +19,9 @@ export const General: FunctionComponent<GeneralProps> = observer(
<Tools application={application} />
<Defaults application={application} />
<ErrorReporting appState={appState} />
<LabsPane application={application} />
{appState.enableUnfinishedFeatures && (
<LabsPane application={application} />
)}
<Advanced
application={application}
appState={appState}