mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-22 06:37:56 +01:00
Disable editor buttons on mobile.
This commit is contained in:
parent
a8e4024803
commit
f7c8c13501
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user