Locked maps must be render in view only.

This commit is contained in:
Paulo Gustavo Veiga 2022-02-25 08:05:23 -08:00
parent 9149e5888a
commit 8ee035d794

View File

@ -7,9 +7,18 @@ export default class EditorOptionsBulder {
let options: EditorOptions = {
enableKeyboardEvents: hotkeys,
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;
if (!AppConfig.isDevelopEnv()) {
options = {