From bb02491f41ea8b8008b887a0123f06e038acf3e3 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Tue, 16 Nov 2021 10:52:43 +0000 Subject: [PATCH] Reset app name in deletion confirmation modal when closing modal --- packages/builder/src/pages/builder/portal/apps/index.svelte | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/builder/src/pages/builder/portal/apps/index.svelte b/packages/builder/src/pages/builder/portal/apps/index.svelte index 53ad661f72..c238356915 100644 --- a/packages/builder/src/pages/builder/portal/apps/index.svelte +++ b/packages/builder/src/pages/builder/portal/apps/index.svelte @@ -165,6 +165,7 @@ notifications.error(`Error deleting app: ${err}`) } selectedApp = null + appName = null } const updateApp = async app => { @@ -298,6 +299,7 @@ title="Confirm deletion" okText="Delete app" onOk={confirmDeleteApp} + onCancel={() => (appName = null)} disabled={appName !== selectedApp?.name} > Are you sure you want to delete the app {selectedApp?.name}?