From 6916bcd4972ed3a3c7b46e8a10ac7b86d6a77898 Mon Sep 17 00:00:00 2001 From: Simone Gotti Date: Mon, 16 Sep 2019 16:05:16 +0200 Subject: [PATCH] step: show command, shell and exit status on run steps --- src/components/log.vue | 14 ++++----- src/components/step.vue | 69 ++++++++++++++++++++++++++++++++--------- 2 files changed, 60 insertions(+), 23 deletions(-) diff --git a/src/components/log.vue b/src/components/log.vue index dbec0d7..e079679 100644 --- a/src/components/log.vue +++ b/src/components/log.vue @@ -1,12 +1,10 @@ diff --git a/src/components/step.vue b/src/components/step.vue index a4c295f..7defc7e 100644 --- a/src/components/step.vue +++ b/src/components/step.vue @@ -16,15 +16,56 @@ {{ duration }} -
- +
+
+
+ + Shell + {{ step.shell}} + + + Exit Status + {{ step.exit_status}} + +
+
+ + Command +
+
+
{{ step.command}}
+
+
+
Log
+
+ +
@@ -45,6 +86,7 @@ export default { data() { return { active: false, + commandActive: true, now: moment() }; }, @@ -80,15 +122,12 @@ export default { methods: { toggle() { this.active = !this.active; - if (this.active) { - this.$emit("step-open", this.index); - } + }, + toggleCommand() { + this.commandActive = !this.commandActive; } }, created() { - if (this.active) { - this.$emit("step-open", this.index); - } window.setInterval(() => { this.now = moment(); }, 500);