From a1edb09e91b69d5c8e3525f55e09c2873668cd13 Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Thu, 6 Oct 2022 21:18:25 -0700 Subject: [PATCH] Fix maps title. --- .../src/components/toolbar/toolbarConfigurationBuilder.tsx | 5 +++-- packages/editor/src/index.tsx | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/editor/src/components/toolbar/toolbarConfigurationBuilder.tsx b/packages/editor/src/components/toolbar/toolbarConfigurationBuilder.tsx index 509cce61..7dfbff18 100644 --- a/packages/editor/src/components/toolbar/toolbarConfigurationBuilder.tsx +++ b/packages/editor/src/components/toolbar/toolbarConfigurationBuilder.tsx @@ -352,6 +352,7 @@ export function buildZoomToolbarConfiguration(isMobile: boolean, designer: Desig export function buildEditorAppBarConfiguration( designer: Designer, + mapTitle: string, onAction: (type: ToolbarActionType) => void, save: () => void, showOnlyCommonActions: boolean, @@ -373,14 +374,14 @@ export function buildEditorAppBarConfiguration( }, { render: () => ( - + - {designer.getMindmap().getDescription()} + {mapTitle} ), diff --git a/packages/editor/src/index.tsx b/packages/editor/src/index.tsx index 2602cbc4..6b5a573c 100644 --- a/packages/editor/src/index.tsx +++ b/packages/editor/src/index.tsx @@ -200,6 +200,7 @@ const Editor = ({ const locale = options.locale; const msg = I18nMsg.loadLocaleData(locale); const menubarConfiguration = configurationBuilder.buildEditorAppBarConfiguration( + options.mapTitle, mindplotComponent?.getDesigner(), onAction, () => {