Disable editor buttons on mobile.

This commit is contained in:
Paulo Gustavo Veiga 2023-01-04 21:53:41 -08:00
parent a8e4024803
commit f7c8c13501

View File

@ -134,11 +134,17 @@ const ActionConfigByRenderMode: Record<ActionType, CapabilitySupport> = {
desktop: { desktop: {
hidden: ['showcase', 'viewonly', 'edition-viewer', 'edition-editor'], hidden: ['showcase', 'viewonly', 'edition-viewer', 'edition-editor'],
}, },
mobile: {
hidden: ['viewonly', 'showcase', 'edition-viewer', 'edition-editor', 'edition-owner'],
},
}, },
share: { share: {
desktop: { desktop: {
hidden: ['showcase', 'viewonly', 'edition-viewer', 'edition-editor'], hidden: ['showcase', 'viewonly', 'edition-viewer', 'edition-editor'],
}, },
mobile: {
hidden: ['viewonly', 'showcase', 'edition-viewer', 'edition-editor', 'edition-owner'],
},
}, },
info: { info: {
desktop: { desktop: {
@ -170,6 +176,9 @@ const ActionConfigByRenderMode: Record<ActionType, CapabilitySupport> = {
desktop: { desktop: {
hidden: ['viewonly', 'edition-viewer', 'showcase'], hidden: ['viewonly', 'edition-viewer', 'showcase'],
}, },
mobile: {
hidden: ['viewonly', 'showcase', 'edition-viewer', 'edition-editor', 'edition-owner'],
},
}, },
export: { export: {
mobile: { mobile: {
@ -190,6 +199,9 @@ const ActionConfigByRenderMode: Record<ActionType, CapabilitySupport> = {
desktop: { desktop: {
hidden: ['showcase', 'viewonly'], hidden: ['showcase', 'viewonly'],
}, },
mobile: {
hidden: ['viewonly', 'showcase', 'edition-viewer', 'edition-editor', 'edition-owner'],
},
}, },
}; };
export default Capability; export default Capability;