mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-22 06:37:56 +01:00
Locked maps must be render in view only.
This commit is contained in:
parent
9149e5888a
commit
8ee035d794
@ -7,9 +7,18 @@ export default class EditorOptionsBulder {
|
|||||||
let options: EditorOptions = {
|
let options: EditorOptions = {
|
||||||
enableKeyboardEvents: hotkeys,
|
enableKeyboardEvents: hotkeys,
|
||||||
locale: locale,
|
locale: locale,
|
||||||
mode: isTryMode ? 'showcase' : 'editor',
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (isTryMode) {
|
||||||
|
// Sent to try mode ...
|
||||||
|
options.mode = 'showcase';
|
||||||
|
} else if (!global.lockSession) {
|
||||||
|
// Map locked, open for view mode ...
|
||||||
|
options.mode = 'viewonly';
|
||||||
|
} else {
|
||||||
|
options.mode = 'edition';
|
||||||
|
}
|
||||||
|
|
||||||
let mapId: number;
|
let mapId: number;
|
||||||
if (!AppConfig.isDevelopEnv()) {
|
if (!AppConfig.isDevelopEnv()) {
|
||||||
options = {
|
options = {
|
||||||
|
Loading…
Reference in New Issue
Block a user