From e071b994cfd6c58f64973ced06f63162943f2ab7 Mon Sep 17 00:00:00 2001 From: Zack Spear Date: Mon, 8 Jan 2024 13:12:14 -0600 Subject: [PATCH] refactor: installKey.install failure handling --- web/store/installKey.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/web/store/installKey.ts b/web/store/installKey.ts index e84266631..84714920a 100644 --- a/web/store/installKey.ts +++ b/web/store/installKey.ts @@ -29,10 +29,14 @@ export const useInstallKeyStore = defineStore('installKey', () => { }); const install = async (action: ExternalKeyActions) => { + console.log('[installKey.install]', action); keyInstallStatus.value = 'installing'; keyAction.value = action; - if (!keyUrl.value) { return console.error('[install] no key to install'); } + if (!keyUrl.value) { + keyInstallStatus.value = 'failed'; + return console.error('[install] no key to install'); + } try { const installResponse = await WebguiInstallKey