From 1726d4431f60f8be0d4e96ca6e7e822ad545b257 Mon Sep 17 00:00:00 2001 From: Brandon Sprague Date: Wed, 24 Jan 2024 12:38:23 -0800 Subject: [PATCH] Fix lint --- frontend/components/analysis/RunButton.vue | 28 ++++++++++++---------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/frontend/components/analysis/RunButton.vue b/frontend/components/analysis/RunButton.vue index d814cc7..280a883 100644 --- a/frontend/components/analysis/RunButton.vue +++ b/frontend/components/analysis/RunButton.vue @@ -73,19 +73,21 @@ const runAnalysis = async () => { await startRun() return } - confirm({ - header: tt('ConfirmationHeader'), - message: tt('ConfirmationMessage'), - icon: 'pi pi-copy', - position: 'center', - blockScroll: true, - reject: () => { clicked.value = false }, - rejectLabel: tt('Cancel Run'), - rejectIcon: 'pi pi-times', - acceptLabel: tt('Run Anyway'), - accept: startRun, - acceptIcon: 'pi pi-check', - }) + await new Promise((resolve, reject) => { + confirm({ + header: tt('ConfirmationHeader'), + message: tt('ConfirmationMessage'), + icon: 'pi pi-copy', + position: 'center', + blockScroll: true, + reject: () => { clicked.value = false }, + rejectLabel: tt('Cancel Run'), + rejectIcon: 'pi pi-times', + acceptLabel: tt('Run Anyway'), + accept: () => { startRun().then(resolve).catch(reject) }, + acceptIcon: 'pi pi-check', + }) + }); } const refreshAnalysisState = async () => { const aid = analysisId.value