Skip to content

Commit

Permalink
show loading spinner only if no modals will open
Browse files Browse the repository at this point in the history
  • Loading branch information
microstudi authored and leio10 committed Jul 22, 2021
1 parent bf0bc98 commit 5c47ca8
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ $(() => {
const $currentTarget = $(event.currentTarget);
const projectAllocation = parseInt($currentTarget.attr("data-allocation"), 10);

$currentTarget.addClass("loading-spinner");
if(!$currentTarget.attr("data-open")) {
$currentTarget.addClass("loading-spinner");
}

if ($currentTarget.attr("disabled")) {
cancelEvent(event);
Expand Down

0 comments on commit 5c47ca8

Please sign in to comment.