From f69c45a2298be2a19f630843b6ea782081f052c9 Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Sat, 8 Oct 2022 14:58:22 -0700 Subject: [PATCH] Remove buttons on mobile. --- .../editor/src/classes/action/capability/index.ts | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/packages/editor/src/classes/action/capability/index.ts b/packages/editor/src/classes/action/capability/index.ts index aea4c889..353cf9a0 100644 --- a/packages/editor/src/classes/action/capability/index.ts +++ b/packages/editor/src/classes/action/capability/index.ts @@ -122,7 +122,11 @@ const ActionConfigByRenderMode: Record = { hidden: ['showcase', 'viewonly', 'edition-viewer'], }, }, - print: undefined, + print: { + mobile: { + hidden: ['viewonly', 'showcase', 'edition-viewer', 'edition-editor', 'edition-owner'], + }, + }, publish: { desktop: { hidden: ['showcase', 'viewonly', 'edition-viewer', 'edition-editor'], @@ -137,6 +141,9 @@ const ActionConfigByRenderMode: Record = { desktop: { hidden: ['showcase'], }, + mobile: { + hidden: ['viewonly', 'showcase', 'edition-viewer', 'edition-editor', 'edition-owner'], + }, }, account: { desktop: { @@ -161,7 +168,11 @@ const ActionConfigByRenderMode: Record = { hidden: ['viewonly', 'edition-viewer', 'showcase'], }, }, - export: undefined, + export: { + mobile: { + hidden: ['viewonly', 'showcase', 'edition-viewer', 'edition-editor', 'edition-owner'], + }, + }, 'sign-up': { desktop: { hidden: ['viewonly', 'edition-viewer', 'edition-editor', 'edition-owner'],