diff --git a/frontend/src/helperComponents/ErrorModal.svelte b/frontend/src/helperComponents/ErrorModal.svelte new file mode 100644 index 0000000..598d4d1 --- /dev/null +++ b/frontend/src/helperComponents/ErrorModal.svelte @@ -0,0 +1,73 @@ + + +{#if showModal && $apiError} + +
+
+

{$apiError.message}

+ {#if $apiError.statusCode} +

+ Status: {$apiError.statusCode} +

+ {/if} +
+

+ The application will remain open. You can retry the connection or + dismiss this message to continue with limited functionality. +

+
+
+ {#if $apiError.canRetry} + + {/if} + +
+
+{/if}