diff --git a/packages/editor/src/components/toolbar/index.tsx b/packages/editor/src/components/toolbar/index.tsx index df27da4f..9a08ea4f 100644 --- a/packages/editor/src/components/toolbar/index.tsx +++ b/packages/editor/src/components/toolbar/index.tsx @@ -120,13 +120,15 @@ export default function Toolbar({ > - onAction('print')} - > - - + {(editorMode === 'edition-owner' || editorMode === 'edition-editor' || editorMode === 'edition-viewer') && ( + onAction('print')} + > + + + )} {editorMode === 'edition-owner' && ( <> )} {(editorMode === 'edition-owner' || editorMode === 'edition-editor') && ( - - - + + + )} {editorMode === 'edition-owner' && ( onAction('share')}> diff --git a/packages/mindplot/src/components/EditorRenderMode.ts b/packages/mindplot/src/components/EditorRenderMode.ts index 4986dae6..70696093 100644 --- a/packages/mindplot/src/components/EditorRenderMode.ts +++ b/packages/mindplot/src/components/EditorRenderMode.ts @@ -1,2 +1,2 @@ -type EditorRenderMode = 'viewonly' | 'edition-owner' | 'edition-editor' | 'showcase'; +type EditorRenderMode = 'viewonly' | 'edition-owner' | 'edition-editor' | 'edition-viewer' | 'showcase'; export default EditorRenderMode;