Skip to content

Commit

Permalink
Add an option to clear service test results in DevUI for Keycloak
Browse files Browse the repository at this point in the history
  • Loading branch information
sberyozkin committed Sep 22, 2022
1 parent d07c866 commit 98a38dd
Showing 1 changed file with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,10 @@
window.open("http://localhost:" + port + servicePath);
}

function clearResults() {
$('#results').text('');
}

{/script}

{#body}
Expand Down Expand Up @@ -562,9 +566,12 @@ <h5 class="card-title text-light">Decoded</h5>
</div>

<br/>
<div class="bg-light" id="results">

<div class="bg-light" id="results">
</div>
<a class="btn btn-link float-right" title="Clear results" onclick="clearResults();">
<i class="fa fa-eraser" aria-hidden="true"></i>
</a>

</div>
</div>
Expand Down Expand Up @@ -620,6 +627,9 @@ <h5 class="card-title text-light">Decoded</h5>
<div class="bg-light" id="results">

</div>
<a class="btn btn-link float-right" title="Clear results" onclick="clearResults();">
<i class="fa fa-eraser" aria-hidden="true"></i>
</a>
</div>
</div>
{#else if info:oidcGrantType is 'client_credentials'}
Expand Down Expand Up @@ -658,6 +668,9 @@ <h5 class="card-title text-light">Decoded</h5>
<div class="bg-light" id="results">

</div>
<a class="btn btn-link float-right" title="Clear results" onclick="clearResults();">
<i class="fa fa-eraser" aria-hidden="true"></i>
</a>
</div>
</div>
{/if}
Expand Down

0 comments on commit 98a38dd

Please sign in to comment.