Remove buttons on mobile.

This commit is contained in:
Paulo Gustavo Veiga 2022-10-08 14:58:22 -07:00
parent 57bbd8ad6e
commit f69c45a229

View File

@ -122,7 +122,11 @@ const ActionConfigByRenderMode: Record<ActionType, CapabilitySupport> = {
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<ActionType, CapabilitySupport> = {
desktop: {
hidden: ['showcase'],
},
mobile: {
hidden: ['viewonly', 'showcase', 'edition-viewer', 'edition-editor', 'edition-owner'],
},
},
account: {
desktop: {
@ -161,7 +168,11 @@ const ActionConfigByRenderMode: Record<ActionType, CapabilitySupport> = {
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'],