]> source.dussan.org Git - gitea.git/commitdiff
Remove commit status running and warning from the dashboard repo list (#26036)
authorYarden Shoham <git@yardenshoham.com>
Fri, 21 Jul 2023 10:32:25 +0000 (13:32 +0300)
committerGitHub <noreply@github.com>
Fri, 21 Jul 2023 10:32:25 +0000 (10:32 +0000)
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>
templates/repo/commit_status.tmpl
web_src/js/components/DashboardRepoList.vue

index 2dfd757ee1ecddc28a0d70c1298f6cd829bbe701..ebd8a55f65e38e38f23cfa9bcc4745eb627568ac 100644 (file)
@@ -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}}
index c5a2de843f6808072121d8bd9efbf956d293d7f7..d68ee45ee3d3c28fcfbe8544af18a57dd32c4ece 100644 (file)
@@ -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 = {