Fix commit status color on dashboard repolist (#25993)

Followup to https://github.com/go-gitea/gitea/pull/25935 which has
missed to change the icon on the repolist because the logic is not
shared with templates.

Co-authored-by: Giteabot <teabot@gitea.io>
This commit is contained in:
silverwind 2023-07-20 01:04:41 +02:00 committed by GitHub
parent e20f8f0977
commit 36010243f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -153,7 +153,7 @@ import {SvgIcon} from '../svg.js';
const {appSubUrl, assetUrlPrefix, pageData} = window.config; const {appSubUrl, assetUrlPrefix, pageData} = window.config;
const commitStatus = { const commitStatus = {
pending: {name: 'octicon-dot-fill', color: 'grey'}, pending: {name: 'octicon-dot-fill', color: 'yellow'},
running: {name: 'octicon-dot-fill', color: 'yellow'}, running: {name: 'octicon-dot-fill', color: 'yellow'},
success: {name: 'octicon-check', color: 'green'}, success: {name: 'octicon-check', color: 'green'},
error: {name: 'gitea-exclamation', color: 'red'}, error: {name: 'gitea-exclamation', color: 'red'},