From 5e33160d8256fbf89924425c9dae5818565cbe2d Mon Sep 17 00:00:00 2001 From: Waldemar Mazurek Date: Wed, 20 Nov 2024 15:25:20 +0100 Subject: [PATCH] Adds option to update view URL in container --- container/src/LuigiContainer.svelte | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/container/src/LuigiContainer.svelte b/container/src/LuigiContainer.svelte index 1f848191f4..10b20f29fb 100644 --- a/container/src/LuigiContainer.svelte +++ b/container/src/LuigiContainer.svelte @@ -139,6 +139,12 @@ } }; + thisComponent.updateViewUrl = (viewUrl: string, internal?: object) => { + if (viewUrl?.length) { + ContainerAPI.updateViewUrl(viewUrl, internal, iframeHandle); + } + }; + thisComponent.closeAlert = (id: any, dismissKey: any) => { ContainerAPI.closeAlert(id, dismissKey, iframeHandle); };