Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/vue_shared/ci_action_icons.js')
-rw-r--r--app/assets/javascripts/vue_shared/ci_action_icons.js22
1 files changed, 22 insertions, 0 deletions
diff --git a/app/assets/javascripts/vue_shared/ci_action_icons.js b/app/assets/javascripts/vue_shared/ci_action_icons.js
new file mode 100644
index 00000000000..734b3c6c45e
--- /dev/null
+++ b/app/assets/javascripts/vue_shared/ci_action_icons.js
@@ -0,0 +1,22 @@
+import cancelSVG from 'icons/_icon_action_cancel.svg';
+import retrySVG from 'icons/_icon_action_retry.svg';
+import playSVG from 'icons/_icon_action_play.svg';
+
+export default function getActionIcon(action) {
+ let icon;
+ switch (action) {
+ case 'icon_action_cancel':
+ icon = cancelSVG;
+ break;
+ case 'icon_action_retry':
+ icon = retrySVG;
+ break;
+ case 'icon_action_play':
+ icon = playSVG;
+ break;
+ default:
+ icon = '';
+ }
+
+ return icon;
+}