ui: Replay the request if the same domain is requested

This commit is contained in:
nemunaire 2024-01-10 16:20:10 +01:00
parent e121372073
commit f45c17b186
1 changed files with 9 additions and 4 deletions

View File

@ -110,10 +110,15 @@
const showDNSSEC = event.detail.showDNSSEC;
request_pending = true;
goto('/resolver/' + encodeURIComponent(form.domain), {
state: {form, showDNSSEC},
noScroll: true,
});
if (form.domain === data.domain) {
resolve(form);
} else {
goto('/resolver/' + encodeURIComponent(form.domain), {
state: {form, showDNSSEC},
noScroll: true,
});
}
}
</script>