File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
apps/builder/app/builder/features/topbar Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,18 @@ export const BuilderModeDropDown = () => {
6969 setActiveMode ( undefined ) ;
7070 } ;
7171
72+ const getDefaultMessage = ( ) => {
73+ if (
74+ isContentModeAllowed &&
75+ isFeatureEnabled ( "contentEditableMode" ) &&
76+ isDesignModeAllowed
77+ ) {
78+ return "Select Design or Content mode" ;
79+ }
80+
81+ return ! isDesignModeAllowed ? "Select Content mode" : "Select Design mode" ;
82+ } ;
83+
7284 return (
7385 < Flex align = "center" >
7486 < Tooltip
@@ -145,7 +157,7 @@ export const BuilderModeDropDown = () => {
145157 < Box css = { { width : theme . spacing [ 25 ] } } >
146158 { activeMode
147159 ? menuItems [ activeMode ] . description
148- : "Select Design or Content mode" }
160+ : getDefaultMessage ( ) }
149161 </ Box >
150162 </ div >
151163 </ DropdownMenuContent >
You can’t perform that action at this time.
0 commit comments