fix: move Labs behind unfinished features flag
This commit is contained in:
@@ -59,11 +59,13 @@ export const createEditorMenuGroups = (
|
|||||||
feature.area === ComponentArea.Editor
|
feature.area === ComponentArea.Editor
|
||||||
)
|
)
|
||||||
.forEach((editorFeature) => {
|
.forEach((editorFeature) => {
|
||||||
if (
|
const notInstalled = !editors.find(
|
||||||
!editors.find(
|
(editor) => editor.identifier === editorFeature.identifier
|
||||||
(editor) => editor.identifier === editorFeature.identifier
|
);
|
||||||
)
|
const isExperimental = application.features.isExperimentalFeature(
|
||||||
) {
|
editorFeature.identifier
|
||||||
|
);
|
||||||
|
if (notInstalled && !isExperimental) {
|
||||||
editorItems[getEditorGroup(editorFeature)].push({
|
editorItems[getEditorGroup(editorFeature)].push({
|
||||||
name: editorFeature.name as string,
|
name: editorFeature.name as string,
|
||||||
isEntitled: false,
|
isEntitled: false,
|
||||||
|
|||||||
@@ -19,7 +19,9 @@ export const General: FunctionComponent<GeneralProps> = observer(
|
|||||||
<Tools application={application} />
|
<Tools application={application} />
|
||||||
<Defaults application={application} />
|
<Defaults application={application} />
|
||||||
<ErrorReporting appState={appState} />
|
<ErrorReporting appState={appState} />
|
||||||
<LabsPane application={application} />
|
{appState.enableUnfinishedFeatures && (
|
||||||
|
<LabsPane application={application} />
|
||||||
|
)}
|
||||||
<Advanced
|
<Advanced
|
||||||
application={application}
|
application={application}
|
||||||
appState={appState}
|
appState={appState}
|
||||||
|
|||||||
Reference in New Issue
Block a user