fix: respect style mode toolbar toggle
This commit is contained in:
parent
f726c14397
commit
e81a022b6f
@ -1972,6 +1972,10 @@ export default function CanvasEditorLegacyPage({ params }: PageProps) {
|
|||||||
const isBatchProcessingEnabled =
|
const isBatchProcessingEnabled =
|
||||||
workflowPageFeatureSettings.batchProcessingEnabled !== false &&
|
workflowPageFeatureSettings.batchProcessingEnabled !== false &&
|
||||||
sceneFusionConfigData?.enabled !== false;
|
sceneFusionConfigData?.enabled !== false;
|
||||||
|
const isStyleModeToolbarEnabled = isCanvasToolbarItemEnabled(
|
||||||
|
canvasToolbarConfig,
|
||||||
|
"styleMode"
|
||||||
|
);
|
||||||
const isStyleProToolbarEnabled =
|
const isStyleProToolbarEnabled =
|
||||||
isCanvasToolbarItemEnabled(canvasToolbarConfig, "stylePro") &&
|
isCanvasToolbarItemEnabled(canvasToolbarConfig, "stylePro") &&
|
||||||
siteSettingsData?.styleProEnabled !== false;
|
siteSettingsData?.styleProEnabled !== false;
|
||||||
@ -10180,7 +10184,9 @@ export default function CanvasEditorLegacyPage({ params }: PageProps) {
|
|||||||
</Tooltip>
|
</Tooltip>
|
||||||
) : null}
|
) : null}
|
||||||
|
|
||||||
{isAgentWorkspaceEnabled && !isVideoMode ? (
|
{isAgentWorkspaceEnabled &&
|
||||||
|
isStyleModeToolbarEnabled &&
|
||||||
|
!isVideoMode ? (
|
||||||
<Tooltip>
|
<Tooltip>
|
||||||
<TooltipTrigger asChild>
|
<TooltipTrigger asChild>
|
||||||
<Button
|
<Button
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user