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