mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-25 15:47:55 +01:00
WIP
This commit is contained in:
parent
0d2da200d6
commit
e755c2fe8b
@ -41,6 +41,7 @@ import IconButton from '@mui/material/IconButton';
|
||||
import { ToolbarActionType } from '../toolbar/ToolbarActionType';
|
||||
import MapInfo from '../../classes/model/map-info';
|
||||
import { useIntl } from 'react-intl';
|
||||
import MapTitle from '../action-widget/pane/map-title';
|
||||
|
||||
interface AppBarProps {
|
||||
model: Editor;
|
||||
@ -93,18 +94,7 @@ const AppBar = ({ model, mapInfo, capability, onAction, accountConfig }: AppBarP
|
||||
visible: !capability.isHidden('appbar-title'),
|
||||
},
|
||||
{
|
||||
render: () => (
|
||||
<Tooltip title={mapInfo.getTitle()}>
|
||||
<Typography
|
||||
className="truncated"
|
||||
variant="body1"
|
||||
component="div"
|
||||
sx={{ marginX: '1.5rem' }}
|
||||
>
|
||||
{mapInfo.getTitle()}
|
||||
</Typography>
|
||||
</Tooltip>
|
||||
),
|
||||
render: () => <MapTitle mapInfo={mapInfo} />,
|
||||
},
|
||||
null,
|
||||
{
|
||||
|
@ -40,7 +40,7 @@ const options: EditorOptions = {
|
||||
|
||||
ReactDOM.render(
|
||||
<Editor
|
||||
mapInfo={new MapInfoImpl('welcome', 'Develop Map Title', false)}
|
||||
mapInfo={new MapInfoImpl(mapId, 'Develop Map Title', false)}
|
||||
options={options}
|
||||
persistenceManager={persistence}
|
||||
onAction={(action) => console.log('action called:', action)}
|
||||
|
Loading…
Reference in New Issue
Block a user