mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-11 01:43:23 +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: {
|
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;
|
||||||
|
Loading…
Reference in New Issue
Block a user