Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5fa1862

Browse files
committed
Implemented overview status color. Fixed small bugs related to existing pipelines with no available runs
1 parenta68bb69 commit5fa1862

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

‎frontend/client/views/overview/index.vue‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
<templatev-for="(pipeline,index)inpipelines">
44
<divclass="column is-one-third":key="index">
55
<divclass="notification content-article">
6-
<divclass="status-display-success"></div>
6+
<divclass="status-display-success"v-if="pipeline.r.status === 'success'"></div>
7+
<divclass="status-display-fail"v-else-if="pipeline.r.status === 'failed'"></div>
8+
<divclass="status-display-unknown"v-else></div>
79
<divclass="outer-box">
810
<router-link:to="{ path: '/pipeline/detail', query: { pipelineid: pipeline.p.id }}"class="hoveraction">
911
<divclass="outer-box-icon-image">
@@ -79,6 +81,7 @@ export default {
7981
.then(response=> {
8082
if (response.data) {
8183
this.pipelines=response.data
84+
console.log(this.pipelines)
8285
}
8386
})
8487
.catch((error)=> {
@@ -158,6 +161,11 @@ export default {
158161
background-color:#ca280b;
159162
}
160163
164+
.status-display-unknown {
165+
@includestatus-display();
166+
background-color:grey;
167+
}
168+
161169
.outer-box {
162170
padding-left:40px;
163171
min-height:170px;

‎frontend/client/views/pipeline/detail.vue‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,11 @@ export default {
193193
this.drawPipelineDetail(pipeline.data,null)
194194
this.lastRedraw=true
195195
}
196-
this.runsRows=pipelineRuns.data
196+
197+
// Are runs available?
198+
if (pipelineRuns.data) {
199+
this.runsRows=pipelineRuns.data
200+
}
197201
}.bind(this)))
198202
.catch((error)=> {
199203
this.$store.commit('clearIntervals')

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp