diff --git a/frontend/src/lib/components/AppConnectInner.svelte b/frontend/src/lib/components/AppConnectInner.svelte
index 5d94f87a57..817a6f4f16 100644
--- a/frontend/src/lib/components/AppConnectInner.svelte
+++ b/frontend/src/lib/components/AppConnectInner.svelte
@@ -1,14 +1,15 @@
{#if !express}
@@ -577,20 +597,11 @@
{#if connectsManual && connectsManual?.length < 10}
- Resource Types have not been synced with the hub. Go to the admins workspace to sync them
- (and add a schedule to do daily):
-
1. Go to the "admins" workspaces:
-
-
-
- 2: Run the synchronization script:
-
-
+ Resource Types have not been synced with the hub
{/if}
-
+
{#if filteredConnectsManual}
{#each filteredConnectsManual as { key }}
{#if nativeLanguagesCategory.includes(key)}
@@ -609,9 +620,6 @@
{/if}
{/each}
{/if}
-
-
-
{#if filteredConnectsManual}
{#each filteredConnectsManual as { key }}
{#if !nativeLanguagesCategory.includes(key)}
@@ -639,6 +647,20 @@
{/each}
{/if}
+ {#if $superadmin}
+
+ {#if hubRtSync.status === 'error'}
+
+ Error syncing resource types : {JSON.stringify(hubRtSync.error)}
+
+ {/if}
+ {/if}
{:else if step == 2 && manual}
= (
| { status: 'loading'; value?: undefined; error?: undefined }
| { status: 'error'; error: any; value?: undefined }
| { status: 'ok'; value: T; error?: undefined }
+ | { status: 'idle'; value?: undefined; error?: undefined }
) & {
refresh: () => void
clear: () => void
@@ -43,7 +44,7 @@ export function usePromise(
{ loadInit = true, clearValueOnRefresh = true }: UsePromiseOptions = {}
): UsePromiseResult {
const ret: any = $state({
- status: 'loading',
+ status: 'idle',
__promise: undefined,
refresh: () => {
untrack(() => {
@@ -67,7 +68,7 @@ export function usePromise(
})
},
clear: () => {
- ret.status = 'loading'
+ ret.status = loadInit ? 'loading' : 'idle'
ret.value = undefined
ret.error = undefined
ret.__promise = undefined