mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-22 14:47:56 +01:00
Fix maps title.
This commit is contained in:
parent
e34c1649f1
commit
a1edb09e91
@ -352,6 +352,7 @@ export function buildZoomToolbarConfiguration(isMobile: boolean, designer: Desig
|
|||||||
|
|
||||||
export function buildEditorAppBarConfiguration(
|
export function buildEditorAppBarConfiguration(
|
||||||
designer: Designer,
|
designer: Designer,
|
||||||
|
mapTitle: string,
|
||||||
onAction: (type: ToolbarActionType) => void,
|
onAction: (type: ToolbarActionType) => void,
|
||||||
save: () => void,
|
save: () => void,
|
||||||
showOnlyCommonActions: boolean,
|
showOnlyCommonActions: boolean,
|
||||||
@ -373,14 +374,14 @@ export function buildEditorAppBarConfiguration(
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
render: () => (
|
render: () => (
|
||||||
<Tooltip title={designer.getMindmap().getDescription()}>
|
<Tooltip title={mapTitle}>
|
||||||
<Typography
|
<Typography
|
||||||
className="truncated"
|
className="truncated"
|
||||||
variant="body1"
|
variant="body1"
|
||||||
component="div"
|
component="div"
|
||||||
sx={{ marginX: '1.5rem' }}
|
sx={{ marginX: '1.5rem' }}
|
||||||
>
|
>
|
||||||
{designer.getMindmap().getDescription()}
|
{mapTitle}
|
||||||
</Typography>
|
</Typography>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
),
|
),
|
||||||
|
@ -200,6 +200,7 @@ const Editor = ({
|
|||||||
const locale = options.locale;
|
const locale = options.locale;
|
||||||
const msg = I18nMsg.loadLocaleData(locale);
|
const msg = I18nMsg.loadLocaleData(locale);
|
||||||
const menubarConfiguration = configurationBuilder.buildEditorAppBarConfiguration(
|
const menubarConfiguration = configurationBuilder.buildEditorAppBarConfiguration(
|
||||||
|
options.mapTitle,
|
||||||
mindplotComponent?.getDesigner(),
|
mindplotComponent?.getDesigner(),
|
||||||
onAction,
|
onAction,
|
||||||
() => {
|
() => {
|
||||||
|
Loading…
Reference in New Issue
Block a user