Skip to content

Commit 31a5bbd

Browse files
committed
Job view partially working now
1 parent aeb620a commit 31a5bbd

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

frontend/client/views/pipeline/log.vue

+5-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</template>
77

88
<script>
9-
import Message from 'vue-bulma-message'
9+
import Message from 'vue-bulma-message-html'
1010
1111
export default {
1212
data () {
@@ -52,7 +52,7 @@ export default {
5252
5353
// job id is optional. If ommitted, all logs from all jobs
5454
// are displayed.
55-
this.jobID = this.$route.query.jobID
55+
this.jobID = this.$route.query.jobid
5656
5757
// Maximum received bytes
5858
const bufferSize = 1024
@@ -70,6 +70,9 @@ export default {
7070
// We add the received log
7171
this.logText += response.data.log
7272
73+
// LF does not work for HTML. Replace with <br />
74+
this.logText = this.logText.replace(/\n/g, '<br />')
75+
7376
// Set the new start position defined by return value
7477
this.startPos = response.data.start
7578
}

frontend/package-lock.json

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frontend/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"vue-bulma-collapse": "1.0.3",
5050
"vue-bulma-datepicker": "^1.3.0",
5151
"vue-bulma-expanding": "^0.0.1",
52-
"vue-bulma-message": "^1.1.1",
52+
"vue-bulma-message-html": "^1.1.2",
5353
"vue-bulma-modal": "1.0.1",
5454
"vue-bulma-notification-fixed": "^1.1.0",
5555
"vue-bulma-progress-bar": "^1.0.2",

0 commit comments

Comments
 (0)