Commit 9d1a12865e5ac301be388741dea54d90d8798611

Authored by Elena.Budnik
1 parent bfa292c6

no derived/alias if parameter is disabled

Showing 1 changed file with 6 additions and 7 deletions   Show diff stats
js/app/models/LocalParamNode.js
... ... @@ -154,17 +154,16 @@ Ext.define('amdaModel.LocalParamNode',
154 154 this.createDownload(this);
155 155 break;
156 156 case 'leaf-createDerivedParam':
157   - if (!this.get('notyet'))
  157 + if (!this.get('disable'))
158 158 this.createLeaf(this);
159   - else
160   - myDesktopApp.warningMsg("Sorry! access to this parameter is restricted");
  159 +// else
  160 +// myDesktopApp.warningMsg("Sorry! access to this parameter is restricted");
161 161 break;
162 162 case 'leaf-createAlias':
163   - if (!this.get('notyet'))
  163 + if (!this.get('disable'))
164 164 this.createAlias(this);
165   - else
166   - myDesktopApp.warningMsg("Sorry! access to this parameter is restricted");
167   -
  165 +// else
  166 +// myDesktopApp.warningMsg("Sorry! access to this parameter is restricted");
168 167 break;
169 168 case 'miss-epnTap':
170 169 this.displayEpnTap();
... ...