Add a nice animation on successful refilling

This commit is contained in:
2024-12-16 00:58:23 +01:00
parent f63fb59cbf
commit 379527cd58
2 changed files with 7 additions and 2 deletions

View File

@ -44,6 +44,11 @@ exportToHtml("loadCounter", (config: CounterConfig) => {
).data.amount;
},
async onRefillingSuccess() {
await this.updateBalance();
document.getElementById("selling-accordion").click();
},
async handleCode(event: SubmitEvent) {
const code = (
$(event.target).find("#code_field").val() as string