feat(shared); Integrated timing plugin in workbench
This commit is contained in:
parent
aa282c8a93
commit
6c489792ba
16 changed files with 381 additions and 107 deletions
|
@ -19,6 +19,7 @@ import {
|
|||
XrayIcon,
|
||||
EditIcon,
|
||||
ExportIcon,
|
||||
GaugeIcon,
|
||||
} from 'shared/components/icons.mjs'
|
||||
import Link from 'next/link'
|
||||
import { MenuWrapper } from 'shared/components/workbench/menus/shared/menu-wrapper.mjs'
|
||||
|
@ -27,6 +28,7 @@ export const ns = ['workbench', 'sections']
|
|||
|
||||
const icons = {
|
||||
test: BeakerIcon,
|
||||
time: GaugeIcon,
|
||||
export: ExportIcon,
|
||||
Edit: EditIcon,
|
||||
cut: CutIcon,
|
||||
|
@ -114,6 +116,15 @@ const NavIcons = ({ setView, setDense, dense, view, saveAs = false, control }) =
|
|||
<BeakerIcon className={iconSize} />
|
||||
</NavButton>
|
||||
)}
|
||||
{control >= controlLevels.views.time && (
|
||||
<NavButton
|
||||
onClick={() => setView('time')}
|
||||
label={t('workbench:timeDesign')}
|
||||
active={view === 'time'}
|
||||
>
|
||||
<GaugeIcon className={iconSize} />
|
||||
</NavButton>
|
||||
)}
|
||||
{control >= controlLevels.views.print && (
|
||||
<NavButton
|
||||
onClick={() => setView('print')}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue