diff options
author | sebdet <sd378r@intl.att.com> | 2018-10-03 11:48:00 +0200 |
---|---|---|
committer | sebdet <sebastien.determe@intl.att.com> | 2018-10-03 18:36:25 +0200 |
commit | 0adebac7d4ff8df9340a3e3943a59da96522688a (patch) | |
tree | dac0868ac5b4d1d41ae89ad33393f1f57b91c4a5 /src/main/resources/META-INF | |
parent | b3579ac9a9c8040c4cefe94dba37f1c9e60d4096 (diff) |
Fix Guard policy Push
Fix push to policy of Guard policies due to interface changes
Issue-ID: CLAMP-225
Change-Id: If0832385c20824ad86ca53bcaa07e6fa1ad61691
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
Diffstat (limited to 'src/main/resources/META-INF')
-rw-r--r-- | src/main/resources/META-INF/resources/designer/partials/portfolios/PolicyWindow_properties.html | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/main/resources/META-INF/resources/designer/partials/portfolios/PolicyWindow_properties.html b/src/main/resources/META-INF/resources/designer/partials/portfolios/PolicyWindow_properties.html index 25cc9a02..a527f53e 100644 --- a/src/main/resources/META-INF/resources/designer/partials/portfolios/PolicyWindow_properties.html +++ b/src/main/resources/META-INF/resources/designer/partials/portfolios/PolicyWindow_properties.html @@ -293,8 +293,8 @@ label { <select class="form-control" name="guardPolicyType" id="guardPolicyType" onchange="changeGuardPolicyType();"> - <option value="MinMax">MinMax</option> - <option value="FrequencyLimiter">FrequencyLimiter</option> + <option value="GUARD_MIN_MAX">MinMax</option> + <option value="GUARD_YAML">FrequencyLimiter</option> </select> </div> <label for="guardTargets" class="col-sm-4 control-label">Guard @@ -378,16 +378,14 @@ label { $("#targetResourceIdOther").val(""); } } - + function changeGuardPolicyType() { console.log("executing GuardPolicyType") console.log("GuardPolicyType value:"+$("#guardPolicyType").val()) - if ($("#guardPolicyType").val()==="MinMax") { - console.log("executing GuardPolicyType") + if ($("#guardPolicyType").val()==="GUARD_MIN_MAX") { $("#minMaxGuardPolicyDiv").show(); $("#frequencyLimiterGuardPolicyDiv").hide(); - } else if ($("#guardPolicyType").val()==="FrequencyLimiter") { - console.log("executing GuardPolicyType") + } else if ($("#guardPolicyType").val()==="GUARD_YAML") { $("#minMaxGuardPolicyDiv").hide(); $("#frequencyLimiterGuardPolicyDiv").show(); } |