diff --git a/pom.xml b/pom.xml index abf224343..92f25c862 100644 --- a/pom.xml +++ b/pom.xml @@ -101,6 +101,11 @@ ace-builds 1.4.4 + + org.webjars.npm + bootstrap-vue + 2.0.0-rc.26 + org.springframework.boot diff --git a/src/main/resources/templates/layout/header.html b/src/main/resources/templates/layout/header.html index 4b0819962..eeb651b13 100644 --- a/src/main/resources/templates/layout/header.html +++ b/src/main/resources/templates/layout/header.html @@ -20,6 +20,8 @@ + + diff --git a/src/main/resources/templates/stack.html b/src/main/resources/templates/stack.html index bfe3238e7..05397716c 100644 --- a/src/main/resources/templates/stack.html +++ b/src/main/resources/templates/stack.html @@ -35,6 +35,7 @@ +
@@ -48,7 +49,7 @@ Preview - Stop + Stop @@ -246,7 +247,24 @@

Job history

success: () => message.update({type: "success", message: "Stack saved."}), error: () => message.update({type: "error", message: "Error saving stack."}) }); - } + }, + stopStack: function () { + // ask for confirmation + this.$bvModal.msgBoxConfirm('This will completely stop the stack. Continue?', { + title: 'Stop request', + centered: true, + noCloseOnBackdrop: true, + cancelTitle: 'No', + okVariant: 'danger', + okTitle: 'Yes', + returnFocus: 'body' + }).then(value => { + if (value) { + // redirect + window.location = `/stacks/${stack.id}/stop`; + } + }) + }, } }); }