Skip to content

Commit

Permalink
Update and solve #61
Browse files Browse the repository at this point in the history
  • Loading branch information
ylvion committed Apr 7, 2022
1 parent f399a1d commit f363a50
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/main/resources/static/js/toolkit.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,10 @@ $(document).ready(function () {
$('.button-spinner').click(function () {
if (this.form.checkValidity()) addSpinner($(this));
});
$('.replace-spinner').click(function () {
addSpinner($(this));
this.removeChild(this.lastElementChild);
});
// Toasts
$('.toast').each(function () {
(new bootstrap.Toast(this, {})).show();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ <h2>
<i class="bi-bar-chart-line"></i>
&nbsp;&nbsp;&nbsp;
<span th:text="${dashboard.getVisualisations().size()}"></span> Analyses
<a th:href="'/ui/dave/dashboards/edit/visualisations' + '?flow=' + ${dashboard.getId()}" onclick="showLoadingModal(this);"
class="float-end text-dark"><i class="bi-pencil" title="Edit analyses"></i></a>
<a th:href="'/ui/dave/dashboards/edit/visualisations' + '?flow=' + ${dashboard.getId()}"
class="float-end text-dark replace-spinner"><i class="bi-pencil" title="Edit analyses"></i></a>
</li>
</ul>
<div class="card-footer">
Expand Down

0 comments on commit f363a50

Please sign in to comment.