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/pipelines/components/pipeline_graph/stage_name.vue')
-rw-r--r--app/assets/javascripts/pipelines/components/pipeline_graph/stage_name.vue28
1 files changed, 28 insertions, 0 deletions
diff --git a/app/assets/javascripts/pipelines/components/pipeline_graph/stage_name.vue b/app/assets/javascripts/pipelines/components/pipeline_graph/stage_name.vue
new file mode 100644
index 00000000000..367a18af248
--- /dev/null
+++ b/app/assets/javascripts/pipelines/components/pipeline_graph/stage_name.vue
@@ -0,0 +1,28 @@
+<script>
+import { capitalize, escape } from 'lodash';
+import tooltipOnTruncate from '~/vue_shared/components/tooltip_on_truncate.vue';
+
+export default {
+ components: {
+ tooltipOnTruncate,
+ },
+ props: {
+ stageName: {
+ type: String,
+ required: true,
+ },
+ },
+ computed: {
+ formattedTitle() {
+ return capitalize(escape(this.stageName));
+ },
+ },
+};
+</script>
+<template>
+ <tooltip-on-truncate :title="stageName" truncate-target="child" placement="top">
+ <div class="gl-py-2 gl-text-truncate gl-font-weight-bold gl-w-20">
+ {{ formattedTitle }}
+ </div>
+ </tooltip-on-truncate>
+</template>