summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFatih Acet <acetfatih@gmail.com>2017-04-21 17:52:15 +0300
committerFatih Acet <acetfatih@gmail.com>2017-04-21 17:52:15 +0300
commit812328e3f1678da9ae4b8e2dd4e47aa02ff2104f (patch)
treeec7432fc7d3c02fa9f103ca25fa9564895a9c6ef
parente34af9a8a1fa70cf675042499cc91ae7aef8e99a (diff)
downloadgitlab-ce-mr-widget-redesign.tar.gz
Pipelines: Update stage tooltip.mr-widget-redesign
-rw-r--r--app/assets/javascripts/vue_pipelines_index/components/stage.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/assets/javascripts/vue_pipelines_index/components/stage.js b/app/assets/javascripts/vue_pipelines_index/components/stage.js
index 37bb7950107..796454fbeee 100644
--- a/app/assets/javascripts/vue_pipelines_index/components/stage.js
+++ b/app/assets/javascripts/vue_pipelines_index/components/stage.js
@@ -72,6 +72,11 @@ export default {
return statusClassToBorderlessSvgMap[this.stage.status.icon];
},
},
+ watch: {
+ 'stage.title': function stageTitle() {
+ $(this.$refs.button).tooltip('destroy').tooltip();
+ },
+ },
template: `
<div>
<button
@@ -81,6 +86,7 @@ export default {
data-placement="top"
data-toggle="dropdown"
type="button"
+ ref="button"
:aria-label="stage.title">
<span v-html="svg" aria-hidden="true"></span>
<i class="fa fa-caret-down" aria-hidden="true"></i>