Compiles.

This commit is contained in:
Paulo Gustavo Veiga 2022-10-08 16:25:08 -07:00
parent 63b5aef63b
commit 4be35a741e

View File

@ -49,6 +49,8 @@ import IconPicker from '../action-widget/pane/icon-picker';
import FontFamilySelector from '../action-widget/button/font-family-selector'; import FontFamilySelector from '../action-widget/button/font-family-selector';
import Capability from '../../classes/action/capability'; import Capability from '../../classes/action/capability';
export type ToolbarActionType = 'export' | 'publish' | 'history' | 'print' | 'share' | 'info';
/** /**
* *
* @param designer designer to aply changes * @param designer designer to aply changes
@ -305,11 +307,14 @@ export function buildZoomToolbarConfiguration(
return [ return [
{ {
icon: <CenterFocusStrongOutlinedIcon />, icon: <KeyboardOutlined />,
tooltip: $msg('CENTER_POSITION'), tooltip: $msg('KEYBOARD_SHOTCUTS'),
onClick: () => { visible: !capability.isHidden('keyboard-shortcuts'),
designer.zoomToFit(); options: [
{
render: () => <KeyboardShorcutsHelp />,
}, },
],
}, },
{ {
// zoom value candidate, neds to fixit // zoom value candidate, neds to fixit
@ -336,14 +341,11 @@ export function buildZoomToolbarConfiguration(
}, },
}, },
{ {
icon: <KeyboardOutlined />, icon: <CenterFocusStrongOutlinedIcon />,
tooltip: $msg('KEYBOARD_SHOTCUTS'), tooltip: $msg('CENTER_POSITION'),
visible: !capability.isHidden('keyboard-shortcuts'), onClick: () => {
options: [ designer.zoomToFit();
{
render: () => <KeyboardShorcutsHelp />,
}, },
],
}, },
]; ];
} }