Skip to content

Commit

Permalink
MSK-488 KillSwitch Info/Management page
Browse files Browse the repository at this point in the history
  • Loading branch information
gsokolov committed Mar 15, 2019
1 parent f72c8b3 commit 7c2824b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ public ActionCommand execute(ActionMapping mapping, FormBean formBean, HttpServl

if ("disableMetricCollection".equals(name))
killSwitchConfiguration.setDisableMetricCollection(val);
else if ("disableTracing".equals(name))
killSwitchConfiguration.setDisableTracing(val);

getAdditionalFunctionalityAPI().setKillSwitchConfiguration(killSwitchConfiguration);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,22 @@
</ano:notPresent>

<ano:present name="killSwitchConfiguration">
<div class="box">
<div class="box-content paddner">
<dl class="dl-horizontal">
<dt>Disable metric collection</dt>
<dd><input type="checkbox" class="js-switch-color" data-switcher="disableMetricCollection" <ano:equal name="killSwitchConfiguration" property="disableMetricCollection" value="true">checked</ano:equal> /></dd>
</dl>
<div class="box">
<div class="box-content paddner">
<dl class="dl-horizontal">
<dt>Disable metric collection</dt>
<dd><input type="checkbox" class="js-switch-color" data-switcher="disableMetricCollection" <ano:equal name="killSwitchConfiguration" property="disableMetricCollection" value="true">checked</ano:equal> /></dd>
</dl>
</div>
</div>
<div class="box">
<div class="box-content paddner">
<dl class="dl-horizontal">
<dt>Disable tracing</dt>
<dd><input type="checkbox" class="js-switch-color" data-switcher="disableTracing" <ano:equal name="killSwitchConfiguration" property="disableTracing" value="true">checked</ano:equal> /></dd>
</dl>
</div>
</div>
</div>
</ano:present>
</div>

Expand Down

0 comments on commit 7c2824b

Please sign in to comment.