[desktop] 'isCrypted' sent to desktop app
This commit is contained in:
parent
7a768c8678
commit
e1a707e49c
|
@ -209,11 +209,11 @@ define([
|
||||||
Common.NotificationCenter.trigger('app:config', {canUndock: true});
|
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 = {};
|
titlebuttons = {};
|
||||||
if ( !mode.isEdit ) {
|
if ( mode.isEdit ) {
|
||||||
native.execCommand('webapps:features', JSON.stringify(
|
|
||||||
{version: config.version, eventloading:true, titlebuttons:true, viewmode:true} ));
|
|
||||||
} else {
|
|
||||||
var header = webapp.getController('Viewport').getView('Common.Views.Header');
|
var header = webapp.getController('Viewport').getView('Common.Views.Header');
|
||||||
if (!!header.btnSave) {
|
if (!!header.btnSave) {
|
||||||
titlebuttons['save'] = {btn: header.btnSave};
|
titlebuttons['save'] = {btn: header.btnSave};
|
||||||
|
|
Loading…
Reference in a new issue