Skip to content

Commit

Permalink
Fixing state synchronization for the buttons when page refreshed
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkoVcode committed Feb 19, 2017
1 parent cd44dd7 commit 9bec204
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions ins_webapp/src/main/resources/templates/peek/peek.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,14 @@
<tr>
<td>Endpoint:</td>
<td><strong id="endpoint-url">{{new_api_endpoint}}</strong>&nbsp;&nbsp;<button type="button" id="proxy-endpoint-clipboard" class="btn btn-xs btn-purple" data-clipboard-action="copy" data-clipboard-target="#endpoint-url">Copy to clipboard</button></td>
<td>{{#has_ownership}}<button type="button" id="proxy-endpoint-testget" class="btn btn-xs btn-purple" disabled>Make test GET request</button>{{/has_ownership}}</td>
<td>{{#has_ownership}}
{{^is_active}}
<button type="button" id="proxy-endpoint-testget" class="btn btn-xs btn-purple" disabled>Make test GET request</button>
{{/is_active}}
{{#is_active}}
<button type="button" id="proxy-endpoint-testget" class="btn btn-xs btn-purple">Make test GET request</button>
{{/is_active}}
{{/has_ownership}}</td>
</tr>
<tr>
<td>Upstream:</td>
Expand All @@ -92,7 +99,14 @@
{{/has_ownership}}
<div id="api-endpoint-error"></div>
</td>
<td>{{#has_ownership}}<button type="button" id="proxy-upstream-selftest" class="btn btn-xs btn-purple">Use demo upstream</button>{{/has_ownership}}</td>
<td>{{#has_ownership}}
{{^is_active}}
<button type="button" id="proxy-upstream-selftest" class="btn btn-xs btn-purple">Use demo upstream</button>
{{/is_active}}
{{#is_active}}
<button type="button" id="proxy-upstream-selftest" class="btn btn-xs btn-purple" disabled>Use demo upstream</button>
{{/is_active}}
{{/has_ownership}}</td>
</tr>
{{#has_ownership}}
<tr>
Expand Down

0 comments on commit 9bec204

Please sign in to comment.