aboutsummaryrefslogtreecommitdiffstats
path: root/web_src/js/components/ActionRunStatus.vue
diff options
context:
space:
mode:
authorYarden Shoham <git@yardenshoham.com>2023-05-09 22:39:16 +0300
committerGitHub <noreply@github.com>2023-05-09 21:39:16 +0200
commit9a0652f0b2e1d56e1187a9442e7f053dad453703 (patch)
tree87b6b016419e4022c59078ef29dac5c87ee7135b /web_src/js/components/ActionRunStatus.vue
parent4f1065030fb43f72478b068d08ad747b00300168 (diff)
downloadgitea-9a0652f0b2e1d56e1187a9442e7f053dad453703.tar.gz
gitea-9a0652f0b2e1d56e1187a9442e7f053dad453703.zip
Attach a tooltip to the action status icon (#24614)
To clearly communicate the current state of the action ![image](https://github.com/go-gitea/gitea/assets/20454870/5d6de6b9-f34f-417d-b08e-fcd1b99b3079) ![image](https://github.com/go-gitea/gitea/assets/20454870/b976676a-4525-43e7-866f-8933be1a5dfd) ![image](https://github.com/go-gitea/gitea/assets/20454870/2e0a55fe-658f-4242-83de-b857a8b55f31) ![image](https://github.com/go-gitea/gitea/assets/20454870/6b42bcd1-c499-41ac-8419-1c4e60085d47) ![image](https://github.com/go-gitea/gitea/assets/20454870/363fcff8-fe61-4363-a04b-2db93cfc4fa3) ![image](https://github.com/go-gitea/gitea/assets/20454870/f8f59b68-93de-4f31-b9b0-24d94990d1d0) --------- Signed-off-by: Yarden Shoham <git@yardenshoham.com>
Diffstat (limited to 'web_src/js/components/ActionRunStatus.vue')
-rw-r--r--web_src/js/components/ActionRunStatus.vue18
1 files changed, 12 insertions, 6 deletions
diff --git a/web_src/js/components/ActionRunStatus.vue b/web_src/js/components/ActionRunStatus.vue
index 8a96eb5f01..8852931891 100644
--- a/web_src/js/components/ActionRunStatus.vue
+++ b/web_src/js/components/ActionRunStatus.vue
@@ -2,12 +2,14 @@
Please also update the template file above if this vue is modified.
-->
<template>
- <SvgIcon name="octicon-check-circle-fill" class="text green" :size="size" :class-name="className" v-if="status === 'success'"/>
- <SvgIcon name="octicon-skip" class="text grey" :size="size" :class-name="className" v-else-if="status === 'skipped'"/>
- <SvgIcon name="octicon-clock" class="text yellow" :size="size" :class-name="className" v-else-if="status === 'waiting'"/>
- <SvgIcon name="octicon-blocked" class="text yellow" :size="size" :class-name="className" v-else-if="status === 'blocked'"/>
- <SvgIcon name="octicon-meter" class="text yellow" :size="size" :class-name="'job-status-rotate ' + className" v-else-if="status === 'running'"/>
- <SvgIcon name="octicon-x-circle-fill" class="text red" :size="size" v-else/>
+ <span :data-tooltip-content="localeStatus">
+ <SvgIcon name="octicon-check-circle-fill" class="text green" :size="size" :class-name="className" v-if="status === 'success'"/>
+ <SvgIcon name="octicon-skip" class="text grey" :size="size" :class-name="className" v-else-if="status === 'skipped'"/>
+ <SvgIcon name="octicon-clock" class="text yellow" :size="size" :class-name="className" v-else-if="status === 'waiting'"/>
+ <SvgIcon name="octicon-blocked" class="text yellow" :size="size" :class-name="className" v-else-if="status === 'blocked'"/>
+ <SvgIcon name="octicon-meter" class="text yellow" :size="size" :class-name="'job-status-rotate ' + className" v-else-if="status === 'running'"/>
+ <SvgIcon name="octicon-x-circle-fill" class="text red" :size="size" v-else/>
+ </span>
</template>
<script>
@@ -27,6 +29,10 @@ export default {
className: {
type: String,
default: ''
+ },
+ localeStatus: {
+ type: String,
+ default: ''
}
},
};