From e1a707e49c84d91e0a07e66dd681fdd133c8bb61 Mon Sep 17 00:00:00 2001 From: Maxim Kadushkin Date: Tue, 9 Jun 2020 00:22:12 +0300 Subject: [PATCH] [desktop] 'isCrypted' sent to desktop app --- apps/common/main/lib/controller/Desktop.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/common/main/lib/controller/Desktop.js b/apps/common/main/lib/controller/Desktop.js index 1e5670f1f..8ffaa0a56 100644 --- a/apps/common/main/lib/controller/Desktop.js +++ b/apps/common/main/lib/controller/Desktop.js @@ -209,11 +209,11 @@ define([ Common.NotificationCenter.trigger('app:config', {canUndock: true}); } + native.execCommand('webapps:features', JSON.stringify( + {version: config.version, eventloading:true, titlebuttons:true, viewmode:!mode.isEdit, crypted:mode.isCrypted} )); + titlebuttons = {}; - if ( !mode.isEdit ) { - native.execCommand('webapps:features', JSON.stringify( - {version: config.version, eventloading:true, titlebuttons:true, viewmode:true} )); - } else { + if ( mode.isEdit ) { var header = webapp.getController('Viewport').getView('Common.Views.Header'); if (!!header.btnSave) { titlebuttons['save'] = {btn: header.btnSave};