From f0b0f22aeda60c77e377f8869f262217c1895ab8 Mon Sep 17 00:00:00 2001 From: yp05327 <576951401@qq.com> Date: Mon, 6 Mar 2023 23:35:24 +0900 Subject: [PATCH] Add ActionRunStatus component (#23259) Related to: https://github.com/go-gitea/gitea/pull/23212#discussion_r1122856231 Decrease duplication of SvgIcon when display a run status svg. --------- Co-authored-by: Lunny Xiao --- web_src/js/components/ActionRunStatus.vue | 30 +++++++++++++++++++++++ web_src/js/components/RepoActionView.vue | 21 ++++------------ 2 files changed, 35 insertions(+), 16 deletions(-) create mode 100644 web_src/js/components/ActionRunStatus.vue diff --git a/web_src/js/components/ActionRunStatus.vue b/web_src/js/components/ActionRunStatus.vue new file mode 100644 index 000000000..3717b6495 --- /dev/null +++ b/web_src/js/components/ActionRunStatus.vue @@ -0,0 +1,30 @@ + + + diff --git a/web_src/js/components/RepoActionView.vue b/web_src/js/components/RepoActionView.vue index a5c12c754..aadc8369b 100644 --- a/web_src/js/components/RepoActionView.vue +++ b/web_src/js/components/RepoActionView.vue @@ -2,10 +2,7 @@
- - - - +
{{ run.title }}
@@ -23,12 +20,7 @@
- - - - - - + {{ job.name }}