|
2 | 2 | <div class="action-view-container">
|
3 | 3 | <div class="action-view-header">
|
4 | 4 | <div class="action-info-summary gt-ac">
|
5 |
| - <ActionRunStatus :status="run.status" :size="20"/> |
| 5 | + <ActionRunStatus :locale-status="locale.status[run.status]" :status="run.status" :size="20"/> |
6 | 6 | <div class="action-title">
|
7 | 7 | {{ run.title }}
|
8 | 8 | </div>
|
|
32 | 32 | <div class="job-brief-list">
|
33 | 33 | <div class="job-brief-item" v-for="(job, index) in run.jobs" :key="job.id">
|
34 | 34 | <a class="job-brief-link" :href="run.link+'/jobs/'+index">
|
35 |
| - <ActionRunStatus :status="job.status"/> |
| 35 | + <ActionRunStatus :locale-status="locale.status[job.status]" :status="job.status"/> |
36 | 36 | <span class="ui text gt-mx-3">{{ job.name }}</span>
|
37 | 37 | </a>
|
38 | 38 | <span class="step-summary-duration">{{ job.duration }}</span>
|
@@ -319,6 +319,16 @@ export function initRepositoryActionView() {
|
319 | 319 | approve: el.getAttribute('data-locale-approve'),
|
320 | 320 | cancel: el.getAttribute('data-locale-cancel'),
|
321 | 321 | rerun: el.getAttribute('data-locale-rerun'),
|
| 322 | + status: { |
| 323 | + unknown: el.getAttribute('data-locale-status-unknown'), |
| 324 | + waiting: el.getAttribute('data-locale-status-waiting'), |
| 325 | + running: el.getAttribute('data-locale-status-running'), |
| 326 | + success: el.getAttribute('data-locale-status-success'), |
| 327 | + failure: el.getAttribute('data-locale-status-failure'), |
| 328 | + cancelled: el.getAttribute('data-locale-status-cancelled'), |
| 329 | + skipped: el.getAttribute('data-locale-status-skipped'), |
| 330 | + blocked: el.getAttribute('data-locale-status-blocked'), |
| 331 | + } |
322 | 332 | }
|
323 | 333 | });
|
324 | 334 | view.mount(el);
|
|
0 commit comments