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 =
|
||||
workflowPageFeatureSettings.batchProcessingEnabled !== false &&
|
||||
sceneFusionConfigData?.enabled !== false;
|
||||
const isStyleModeToolbarEnabled = isCanvasToolbarItemEnabled(
|
||||
canvasToolbarConfig,
|
||||
"styleMode"
|
||||
);
|
||||
const isStyleProToolbarEnabled =
|
||||
isCanvasToolbarItemEnabled(canvasToolbarConfig, "stylePro") &&
|
||||
siteSettingsData?.styleProEnabled !== false;
|
||||
@ -10180,7 +10184,9 @@ export default function CanvasEditorLegacyPage({ params }: PageProps) {
|
||||
</Tooltip>
|
||||
) : null}
|
||||
|
||||
{isAgentWorkspaceEnabled && !isVideoMode ? (
|
||||
{isAgentWorkspaceEnabled &&
|
||||
isStyleModeToolbarEnabled &&
|
||||
!isVideoMode ? (
|
||||
<Tooltip>
|
||||
<TooltipTrigger asChild>
|
||||
<Button
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user