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