Skip to content

Commit

Permalink
Added go back button at job log view
Browse files Browse the repository at this point in the history
  • Loading branch information
michelvocks committed Jun 14, 2018
1 parent b20442b commit d80cbbd
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions frontend/client/views/pipeline/log.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
<template>
<div class="job-log-view">
<message :direction="'down'" :message="logText" :duration="0"></message>
<div class="job-loading" v-if="jobRunning"></div>
<div>
<a class="button is-green-button" @click="backToDetail" style="margin-bottom: 15px;">
<span class="icon">
<i class="fa fa-arrow-circle-left"></i>
</span>
<span>Go Back</span>
</a>
<div class="job-log-view">
<message :direction="'down'" :message="logText" :duration="0"></message>
<div class="job-loading" v-if="jobRunning"></div>
</div>
</div>
</template>

Expand Down Expand Up @@ -96,6 +104,11 @@ export default {
clearInterval(this.intervalID)
this.$onError(error)
})
},
backToDetail () {
// Route
this.$router.push({path: '/pipeline/detail', query: { pipelineid: this.pipelineID, runid: this.runID }})
}
}
}
Expand Down

0 comments on commit d80cbbd

Please sign in to comment.