Invalidate project to update onboard page

This commit is contained in:
ernstmul
2025-02-13 12:13:56 +01:00
parent 52496e0578
commit 07329484d8
4 changed files with 8 additions and 8 deletions
@@ -15,7 +15,6 @@
import { Button, Form, InputText } from '$lib/elements/forms';
import { IconAndroid, IconAppwrite } from '@appwrite.io/pink-icons-svelte';
import { Card } from '$lib/components';
import { base } from '$app/paths';
import { page } from '$app/stores';
import { onMount } from 'svelte';
import { sdk } from '$lib/stores/sdk';
@@ -82,6 +81,7 @@ const val APPWRITE_PUBLIC_ENDPOINT = "${sdk.forProject.client.config.endpoint}"
if (response.events.includes(`projects.${projectId}.ping`)) {
connectionSuccessful = true;
invalidate(Dependencies.ORGANIZATION);
invalidate(Dependencies.PROJECT);
unsubscribe();
}
});
@@ -229,7 +229,7 @@ const val APPWRITE_PUBLIC_ENDPOINT = "${sdk.forProject.client.config.endpoint}"
fullWidthMobile
secondary
disabled={isCreatingPlatform}
href={`${base}/project-${projectId}/overview`}>
href={location.pathname}>
Go to dashboard
</Button>
</svelte:fragment>
@@ -15,7 +15,6 @@
import { Button, Form, InputText } from '$lib/elements/forms';
import { IconApple, IconAppwrite } from '@appwrite.io/pink-icons-svelte';
import { Card } from '$lib/components';
import { base } from '$app/paths';
import { page } from '$app/stores';
import { onMount } from 'svelte';
import { sdk } from '$lib/stores/sdk';
@@ -93,6 +92,7 @@ APPWRITE_PUBLIC_ENDPOINT: "${sdk.forProject.client.config.endpoint}"
if (response.events.includes(`projects.${projectId}.ping`)) {
connectionSuccessful = true;
invalidate(Dependencies.ORGANIZATION);
invalidate(Dependencies.PROJECT);
unsubscribe();
}
});
@@ -253,7 +253,7 @@ APPWRITE_PUBLIC_ENDPOINT: "${sdk.forProject.client.config.endpoint}"
fullWidthMobile
secondary
disabled={isCreatingPlatform}
href={`${base}/project-${projectId}/overview`}>
href={location.pathname}>
Go to dashboard
</Button>
</svelte:fragment>
@@ -15,7 +15,6 @@
import { Button, Form, InputText } from '$lib/elements/forms';
import { IconFlutter, IconAppwrite } from '@appwrite.io/pink-icons-svelte';
import { Card } from '$lib/components';
import { base } from '$app/paths';
import { page } from '$app/stores';
import { onMount } from 'svelte';
import { sdk } from '$lib/stores/sdk';
@@ -150,6 +149,7 @@ static const String APPWRITE_PUBLIC_ENDPOINT = "${sdk.forProject.client.config.e
if (response.events.includes(`projects.${projectId}.ping`)) {
connectionSuccessful = true;
invalidate(Dependencies.ORGANIZATION);
invalidate(Dependencies.PROJECT);
unsubscribe();
}
});
@@ -312,7 +312,7 @@ static const String APPWRITE_PUBLIC_ENDPOINT = "${sdk.forProject.client.config.e
fullWidthMobile
secondary
disabled={isCreatingPlatform}
href={`${base}/project-${projectId}/overview`}>
href={location.pathname}>
Go to dashboard
</Button>
</svelte:fragment>
@@ -15,7 +15,6 @@
import { Button, Form, InputText } from '$lib/elements/forms';
import { IconReact, IconAppwrite } from '@appwrite.io/pink-icons-svelte';
import { Card } from '$lib/components';
import { base } from '$app/paths';
import { page } from '$app/stores';
import { onMount } from 'svelte';
import { sdk } from '$lib/stores/sdk';
@@ -119,6 +118,7 @@ const APPWRITE_PUBLIC_ENDPOINT = "${sdk.forProject.client.config.endpoint}";
if (response.events.includes(`projects.${projectId}.ping`)) {
connectionSuccessful = true;
invalidate(Dependencies.ORGANIZATION);
invalidate(Dependencies.PROJECT);
unsubscribe();
}
});
@@ -277,7 +277,7 @@ const APPWRITE_PUBLIC_ENDPOINT = "${sdk.forProject.client.config.endpoint}";
fullWidthMobile
secondary
disabled={isCreatingPlatform}
href={`${base}/project-${projectId}/overview`}>
href={location.pathname}>
Go to dashboard
</Button>
</svelte:fragment>