Skip to content

Commit

Permalink
Remove commit status running and warning from the dashboard repo list (
Browse files Browse the repository at this point in the history
…go-gitea#26036)

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

Follows go-gitea#25839

Signed-off-by: Yarden Shoham <[email protected]>
  • Loading branch information
yardenshoham authored Jul 21, 2023
1 parent d0dbe52 commit dbbae67
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions templates/repo/commit_status.tmpl
Original file line number Diff line number Diff line change
@@ -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}}
Expand Down
3 changes: 1 addition & 2 deletions web_src/js/components/DashboardRepoList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit dbbae67

Please sign in to comment.