From 0572906c86465e9e10f4f3a16fb9e6382d5d55c6 Mon Sep 17 00:00:00 2001 From: Micah Lee Date: Thu, 31 Oct 2024 11:34:01 -0700 Subject: [PATCH 1/2] Stop popping up the interruption dialog --- src/renderer/src/App.vue | 11 ---- src/renderer/src/modals/InterruptedModal.vue | 62 -------------------- src/renderer/src/views/AccountView.vue | 1 - 3 files changed, 74 deletions(-) delete mode 100644 src/renderer/src/modals/InterruptedModal.vue diff --git a/src/renderer/src/App.vue b/src/renderer/src/App.vue index 839d9748..71c3ab14 100644 --- a/src/renderer/src/App.vue +++ b/src/renderer/src/App.vue @@ -7,7 +7,6 @@ import CydAPIClient from '../../cyd-api-client'; import SignInModal from "./modals/SignInModal.vue"; import AutomationErrorReportModal from "./modals/AutomationErrorReportModal.vue"; -import InterruptedModal from "./modals/InterruptedModal.vue"; import AdvancedSettingsModal from "./modals/AdvancedSettingsModal.vue"; import TabsView from "./views/TabsView.vue"; @@ -76,12 +75,6 @@ emitter?.on('show-automation-error', () => { showAutomationErrorReportModal.value = true; }); -// Interrupted modal -const showInterruptedModal = ref(false); -emitter?.on('show-interrupted', () => { - showInterruptedModal.value = true; -}); - // Advanced settings modal const showAdvancedSettingsModal = ref(false); emitter?.on('show-advanced-settings', () => { @@ -135,10 +128,6 @@ onMounted(async () => { - - - diff --git a/src/renderer/src/modals/InterruptedModal.vue b/src/renderer/src/modals/InterruptedModal.vue deleted file mode 100644 index c7307fe2..00000000 --- a/src/renderer/src/modals/InterruptedModal.vue +++ /dev/null @@ -1,62 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/renderer/src/views/AccountView.vue b/src/renderer/src/views/AccountView.vue index 4b9f5bbe..67c282f8 100644 --- a/src/renderer/src/views/AccountView.vue +++ b/src/renderer/src/views/AccountView.vue @@ -64,7 +64,6 @@ onMounted(async () => { if (await getAccountRunning(props.account.id)) { console.error('Account was running and got interrupted'); await setAccountRunning(props.account.id, false); - emitter?.emit('show-interrupted'); } }); From c0eea78781c492fe3abae01b170a686e614c8c17 Mon Sep 17 00:00:00 2001 From: Micah Lee Date: Thu, 31 Oct 2024 11:36:05 -0700 Subject: [PATCH 2/2] Fix lint --- src/renderer/src/views/AccountView.vue | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/renderer/src/views/AccountView.vue b/src/renderer/src/views/AccountView.vue index 67c282f8..9adf029d 100644 --- a/src/renderer/src/views/AccountView.vue +++ b/src/renderer/src/views/AccountView.vue @@ -1,15 +1,11 @@