Fixed API link

This commit is contained in:
2025-08-01 01:36:00 +01:00
parent ae015a53c3
commit dfb3f20c93
2 changed files with 28 additions and 21 deletions
+9 -6
View File
@@ -61,9 +61,9 @@
</div>
<div class="generators-grid" :class="`grid-${generators.length}`">
<NameGeneratorCard
v-for="id in generators"
:key="id"
<NameGeneratorCard
v-for="id in generators"
:key="id"
:card-id="id"
@show-toast="handleToast"
/>
@@ -92,9 +92,12 @@ function handleToast(event) {
toastMessage.value = event.message;
toastType.value = event.type;
showToast.value = true;
setTimeout(() => {
showToast.value = false;
}, event.type === "error" ? 4000 : 2000);
setTimeout(
() => {
showToast.value = false;
},
event.type === "error" ? 4000 : 2000
);
}
function addGenerator() {