Skip to content

Commit

Permalink
Closes-Bug: #1553294
Browse files Browse the repository at this point in the history
Visible: false for RA and RP config in SI page in case of transparent template.

Change-Id: I793a39c39b53a2bc4f18966a4deb2c5fb9ad2088
  • Loading branch information
biswajit-mandal committed Mar 8, 2016
1 parent 80844d2 commit 6700be3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions webroot/config/services/instances/ui/js/svcInst.utils.js
Expand Up @@ -794,6 +794,7 @@ define([
},
this.getRtPolicyAccordianView = function (isDisabled) {
return {
visible: 'ifNotTransparentTmpl',
elementId: 'rtPolicySection',
title: 'Routing Policy',
active:false,
Expand Down Expand Up @@ -957,6 +958,7 @@ define([
},
this.getRtAggregateAccordianView = function (isDisabled) {
return {
visible: 'ifNotTransparentTmpl',
elementId: 'rtAggregateSection',
title: 'Route Aggregate',
view: 'SectionView',
Expand Down
11 changes: 11 additions & 0 deletions webroot/config/services/instances/ui/js/views/svcInstGridView.js
Expand Up @@ -1087,6 +1087,17 @@ define([
}
return svcScaling;
}), model);
model.ifNotTransparentTmpl = ko.computed((function() {
var svcTmpl = getSvcTmplDetailsByUIStr(this.service_template());
var svcMode =
getValueByJsonPath(svcTmpl,
'service_template_properties;service_mode',
null);
if ('transparent' == svcMode) {
return false;
}
return true;
}), model);
model.showPortTuplesView = ko.computed((function() {
var svcTmpl = getSvcTmplDetailsByUIStr(this.service_template());
var tmplVer =
Expand Down

0 comments on commit 6700be3

Please sign in to comment.