diff --git a/frontend/src/lib/components/apps/components/display/AppDownload.svelte b/frontend/src/lib/components/apps/components/display/AppDownload.svelte index 75220114be..fc07ff339f 100644 --- a/frontend/src/lib/components/apps/components/display/AppDownload.svelte +++ b/frontend/src/lib/components/apps/components/display/AppDownload.svelte @@ -10,6 +10,7 @@ import { AlignWrapper } from '../helpers' import { Button } from '$lib/components/common' import { loadIcon } from '../icon' + import ComponentErrorHandler from '../helpers/ComponentErrorHandler.svelte' export let id: string export let configuration: RichConfigurations @@ -19,7 +20,7 @@ export let verticalAlignment: 'top' | 'center' | 'bottom' | undefined = undefined export let noWFull = false - let resolvedConfig = initConfig( + const resolvedConfig = initConfig( components['downloadcomponent'].initialData.configuration, configuration ) @@ -63,30 +64,37 @@ {#if render} - + + {/if} diff --git a/frontend/src/lib/components/apps/components/helpers/ComponentErrorHandler.svelte b/frontend/src/lib/components/apps/components/helpers/ComponentErrorHandler.svelte new file mode 100644 index 0000000000..6be7c5e191 --- /dev/null +++ b/frontend/src/lib/components/apps/components/helpers/ComponentErrorHandler.svelte @@ -0,0 +1,28 @@ + + +{#if hasError} +
+ + + +
+ +
+ One of the configuration of the component is invalid. Please check the configuration + and try again. +
+
+
+
+
+
+{:else} + +{/if}