Skip to content

Commit

Permalink
form designer: show view mode switch only when experimental features …
Browse files Browse the repository at this point in the history
…are enabled
  • Loading branch information
SteRiccio committed Sep 26, 2024
1 parent cc77190 commit 26f65cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion webapp/components/survey/SurveyForm/SurveyForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import * as Survey from '@core/survey/survey'
import * as NodeDef from '@core/survey/nodeDef'
import * as NodeDefLayout from '@core/survey/nodeDefLayout'
import * as Record from '@core/record/record'
import * as ProcessUtils from '@core/processUtils'

import { appModuleUri, designerModules } from '@webapp/app/appModules'
import { SurveyState, useSurvey } from '@webapp/store/survey'
Expand Down Expand Up @@ -199,7 +200,7 @@ const SurveyForm = (props) => {
onSelect={onNodeDefTreeSelect}
/>
<div className="display-flex sidebar-bottom-bar">
{edit && (
{edit && ProcessUtils.ENV.experimentalFeatures && (
<ButtonGroup
items={treeSelectViewModeItems}
onChange={(mode) => dispatch(SurveyFormActions.setTreeSelectViewMode(mode))}
Expand Down

0 comments on commit 26f65cd

Please sign in to comment.