From dbbae67f44364eb965f516bfc77ba25dd5242c16 Mon Sep 17 00:00:00 2001 From: Yarden Shoham Date: Fri, 21 Jul 2023 13:32:25 +0300 Subject: [PATCH] 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 --- templates/repo/commit_status.tmpl | 1 + web_src/js/components/DashboardRepoList.vue | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/repo/commit_status.tmpl b/templates/repo/commit_status.tmpl index 2dfd757ee1..ebd8a55f65 100644 --- a/templates/repo/commit_status.tmpl +++ b/templates/repo/commit_status.tmpl @@ -1,3 +1,4 @@ + {{if eq .State "pending"}} {{svg "octicon-dot-fill" 18 "commit-status icon text yellow"}} {{end}} diff --git a/web_src/js/components/DashboardRepoList.vue b/web_src/js/components/DashboardRepoList.vue index c5a2de843f..d68ee45ee3 100644 --- a/web_src/js/components/DashboardRepoList.vue +++ b/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 = {