From 9d1a12865e5ac301be388741dea54d90d8798611 Mon Sep 17 00:00:00 2001 From: Elena.Budnik <ebudnik@irap.omp.eu> Date: Wed, 12 Sep 2018 16:49:35 +0200 Subject: [PATCH] no derived/alias if parameter is disabled --- js/app/models/LocalParamNode.js | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/js/app/models/LocalParamNode.js b/js/app/models/LocalParamNode.js index 60f3848..9b95a0a 100644 --- a/js/app/models/LocalParamNode.js +++ b/js/app/models/LocalParamNode.js @@ -154,17 +154,16 @@ Ext.define('amdaModel.LocalParamNode', this.createDownload(this); break; case 'leaf-createDerivedParam': - if (!this.get('notyet')) + if (!this.get('disable')) this.createLeaf(this); - else - myDesktopApp.warningMsg("Sorry! access to this parameter is restricted"); +// else +// myDesktopApp.warningMsg("Sorry! access to this parameter is restricted"); break; case 'leaf-createAlias': - if (!this.get('notyet')) + if (!this.get('disable')) this.createAlias(this); - else - myDesktopApp.warningMsg("Sorry! access to this parameter is restricted"); - +// else +// myDesktopApp.warningMsg("Sorry! access to this parameter is restricted"); break; case 'miss-epnTap': this.displayEpnTap(); -- libgit2 0.21.2