From 6071526076e70c68072ffb8ee84e2605ef0b2348 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Mon, 18 Oct 2021 12:07:44 +0100 Subject: [PATCH] Improve app export UX by immediately starting a download stream of the app export --- .../src/pages/builder/portal/apps/index.svelte | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/packages/builder/src/pages/builder/portal/apps/index.svelte b/packages/builder/src/pages/builder/portal/apps/index.svelte index 01eaa8281e..1b0732ab01 100644 --- a/packages/builder/src/pages/builder/portal/apps/index.svelte +++ b/packages/builder/src/pages/builder/portal/apps/index.svelte @@ -112,16 +112,8 @@ const exportApp = app => { const id = app.deployed ? app.prodId : app.devId - try { - download( - `/api/backups/export?appId=${id}&appname=${encodeURIComponent( - app.name - )}` - ) - notifications.success("App exported successfully") - } catch (err) { - notifications.error(`Error exporting app: ${err}`) - } + const appName = encodeURIComponent(app.name) + window.location = `/api/backups/export?appId=${id}&appname=${appName}` } const unpublishApp = app => {