Skip to content

Commit

Permalink
fix: update disableButton
Browse files Browse the repository at this point in the history
  • Loading branch information
dewanakl committed Dec 28, 2024
1 parent f3fac51 commit 6b3feba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/comment.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const comment = (() => {
}

changeButton(id, true);
const btn = util.disableButton(button);
const btn = util.disableButton(button, 'Loading');
const like = document.querySelector(`[onclick="like.like(this)"][data-uuid="${id}"]`);
like.disabled = true;

Expand Down Expand Up @@ -304,7 +304,7 @@ export const comment = (() => {
}

changeButton(id, true);
const btn = util.disableButton(button);
const btn = util.disableButton(button, 'Loading');

await request(HTTP_GET, '/api/comment/' + id)
.token(session.getToken())
Expand Down

0 comments on commit 6b3feba

Please sign in to comment.