From 37167904c0aa6201979e83cc35ddaec8e91cbfd2 Mon Sep 17 00:00:00 2001 From: Yarden Shoham Date: Fri, 21 Jul 2023 08:50:26 +0000 Subject: [PATCH] Remove commit status running and warning from the dashboard repo list Also added comments so the next time the dashboard repo list won't be forgotten 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 2dfd757ee1ecd..ebd8a55f65e38 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 c5a2de843f680..d68ee45ee3d3c 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 = {