Commit 33deaaf3 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Remove tooltip from API and vue, follow up:

https://gitlab.com/gitlab-org/gitlab-ce/issues/30511
parent 34eea295
...@@ -36,7 +36,7 @@ export default { ...@@ -36,7 +36,7 @@ export default {
computed: { computed: {
cssClasses() { cssClasses() {
return `ci-status ci-${this.pipeline.details.status.group} has-tooltip`; return `ci-status ci-${this.pipeline.details.status.group}`;
}, },
detailsPath() { detailsPath() {
...@@ -47,17 +47,12 @@ export default { ...@@ -47,17 +47,12 @@ export default {
content() { content() {
return `${this.svg} ${this.pipeline.details.status.text}`; return `${this.svg} ${this.pipeline.details.status.text}`;
}, },
tooltipTitle() {
return this.pipeline.details.status_tooltip;
},
}, },
template: ` template: `
<td class="commit-link"> <td class="commit-link">
<a <a
:class="cssClasses" :class="cssClasses"
:href="detailsPath" :href="detailsPath"
:title="tooltipTitle"
v-html="content"> v-html="content">
</a> </a>
</td> </td>
......
...@@ -13,7 +13,6 @@ class PipelineEntity < Grape::Entity ...@@ -13,7 +13,6 @@ class PipelineEntity < Grape::Entity
expose :details do expose :details do
expose :detailed_status, as: :status, with: StatusEntity expose :detailed_status, as: :status, with: StatusEntity
expose :status_tooltip
expose :duration expose :duration
expose :finished_at expose :finished_at
expose :stages, using: StageEntity expose :stages, using: StageEntity
...@@ -82,8 +81,4 @@ class PipelineEntity < Grape::Entity ...@@ -82,8 +81,4 @@ class PipelineEntity < Grape::Entity
def detailed_status def detailed_status
pipeline.detailed_status(request.user) pipeline.detailed_status(request.user)
end end
def status_tooltip
pipeline.present(current_user: request.user).status_title
end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment