瀏覽代碼

Remove commit status running and warning from the dashboard repo list (#26036)

Also added comments so the next time the dashboard repo list won't be
forgotten

Follows #25839

Signed-off-by: Yarden Shoham <git@yardenshoham.com>
tags/v1.21.0-rc0
Yarden Shoham 10 月之前
父節點
當前提交
dbbae67f44
No account linked to committer's email address
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1
    0
      templates/repo/commit_status.tmpl
  2. 1
    2
      web_src/js/components/DashboardRepoList.vue

+ 1
- 0
templates/repo/commit_status.tmpl 查看文件

@@ -1,3 +1,4 @@
<!-- make sure this matches the color logic in web_src/js/components/DashboardRepoList.vue -->
{{if eq .State "pending"}}
{{svg "octicon-dot-fill" 18 "commit-status icon text yellow"}}
{{end}}

+ 1
- 2
web_src/js/components/DashboardRepoList.vue 查看文件

@@ -152,13 +152,12 @@ import {SvgIcon} from '../svg.js';

const {appSubUrl, assetUrlPrefix, pageData} = window.config;

// make sure this matches templates/repo/commit_status.tmpl
const commitStatus = {
pending: {name: 'octicon-dot-fill', color: 'yellow'},
running: {name: 'octicon-dot-fill', color: 'yellow'},
success: {name: 'octicon-check', color: 'green'},
error: {name: 'gitea-exclamation', color: 'red'},
failure: {name: 'octicon-x', color: 'red'},
warning: {name: 'gitea-exclamation', color: 'yellow'},
};

const sfc = {

Loading…
取消
儲存