From f14bf129130f6af06a89908290092f1239b4538b Mon Sep 17 00:00:00 2001 From: Tai Sakuma Date: Mon, 21 Oct 2024 13:05:45 -0400 Subject: [PATCH] Add confirmation dialogs for "interrupt", "terminate" and "kill" --- .../main/run-frame/top-bar/ActionRunning.vue | 49 +++++++++++++++++-- .../top-bar/InterruptConfirmationDialog.vue | 29 +++++++++++ .../top-bar/KillConfirmationDialog.vue | 34 +++++++++++++ .../top-bar/TerminateConfirmationDialog.vue | 34 +++++++++++++ 4 files changed, 142 insertions(+), 4 deletions(-) create mode 100644 src/components/main/run-frame/top-bar/InterruptConfirmationDialog.vue create mode 100644 src/components/main/run-frame/top-bar/KillConfirmationDialog.vue create mode 100644 src/components/main/run-frame/top-bar/TerminateConfirmationDialog.vue diff --git a/src/components/main/run-frame/top-bar/ActionRunning.vue b/src/components/main/run-frame/top-bar/ActionRunning.vue index 2b907ed..5ccb6ed 100644 --- a/src/components/main/run-frame/top-bar/ActionRunning.vue +++ b/src/components/main/run-frame/top-bar/ActionRunning.vue @@ -4,7 +4,7 @@ variant="outlined" color="error" prepend-icon="mdi-close" - @click="executeInterrupt" + @click="dialogInterrupt = true" > interrupt @@ -14,13 +14,13 @@ - + Terminate - + @@ -28,10 +28,28 @@ + + + + + + + + + + + + diff --git a/src/components/main/run-frame/top-bar/InterruptConfirmationDialog.vue b/src/components/main/run-frame/top-bar/InterruptConfirmationDialog.vue new file mode 100644 index 0000000..27ebe7e --- /dev/null +++ b/src/components/main/run-frame/top-bar/InterruptConfirmationDialog.vue @@ -0,0 +1,29 @@ + + + diff --git a/src/components/main/run-frame/top-bar/KillConfirmationDialog.vue b/src/components/main/run-frame/top-bar/KillConfirmationDialog.vue new file mode 100644 index 0000000..19ba0dc --- /dev/null +++ b/src/components/main/run-frame/top-bar/KillConfirmationDialog.vue @@ -0,0 +1,34 @@ + + + diff --git a/src/components/main/run-frame/top-bar/TerminateConfirmationDialog.vue b/src/components/main/run-frame/top-bar/TerminateConfirmationDialog.vue new file mode 100644 index 0000000..3a53179 --- /dev/null +++ b/src/components/main/run-frame/top-bar/TerminateConfirmationDialog.vue @@ -0,0 +1,34 @@ + + +