fix: eslint-disable comments correctly placed for script and template sections
This commit is contained in:
@@ -51,6 +51,7 @@
|
|||||||
|
|
||||||
if (!authStore.isAuthenticated) {
|
if (!authStore.isAuthenticated) {
|
||||||
pageState = 'unauthorized';
|
pageState = 'unauthorized';
|
||||||
|
// eslint-disable-next-line svelte/no-navigation-without-resolve
|
||||||
goto('/login', { replaceState: true });
|
goto('/login', { replaceState: true });
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -1237,6 +1238,7 @@
|
|||||||
if (response.ok) {
|
if (response.ok) {
|
||||||
toast.success('Account deleted successfully', { id: loadingToast });
|
toast.success('Account deleted successfully', { id: loadingToast });
|
||||||
authStore.logout();
|
authStore.logout();
|
||||||
|
// eslint-disable-next-line svelte/no-navigation-without-resolve
|
||||||
goto('/');
|
goto('/');
|
||||||
} else {
|
} else {
|
||||||
const text = await response.text();
|
const text = await response.text();
|
||||||
@@ -2599,6 +2601,7 @@
|
|||||||
<p class="mb-3 text-sm text-gray-600">
|
<p class="mb-3 text-sm text-gray-600">
|
||||||
View and export all personal data we hold about you
|
View and export all personal data we hold about you
|
||||||
</p>
|
</p>
|
||||||
|
<!-- eslint-disable-next-line svelte/no-navigation-without-resolve -->
|
||||||
<Button onclick={() => goto('/gdpr')} variant="outline">
|
<Button onclick={() => goto('/gdpr')} variant="outline">
|
||||||
<svg
|
<svg
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
|||||||
Reference in New Issue
Block a user