improve ux

This commit is contained in:
Egor Aristov 2025-02-22 21:41:47 +03:00
parent 68f3632853
commit 21b5774e9e
Signed by: egor3f
GPG Key ID: 40482A264AAEC85F

View File

@ -26,12 +26,14 @@ watch(existingLink, async (value) => {
});
watch(store.specs, debounce(() => {
if(store.formValid) {
generateLink();
} else {
link.value = "";
}
}, 100));
if (store.formValid) {
generateLink();
} else {
link.value = "";
}
}, 100),
{immediate: true}
);
async function generateLink() {
try {