Skip to content

Commit

Permalink
fix: move Labs behind unfinished features flag
Browse files Browse the repository at this point in the history
  • Loading branch information
moughxyz committed Mar 10, 2022
1 parent ceedaad commit 7e0e620
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 3 additions & 1 deletion app/assets/javascripts/preferences/panes/General.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 7e0e620

Please sign in to comment.