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 {
computed: {
cssClasses() {
return `ci-status ci-${this.pipeline.details.status.group} has-tooltip`;
return `ci-status ci-${this.pipeline.details.status.group}`;
},
detailsPath() {
......@@ -47,17 +47,12 @@ export default {
content() {
return `${this.svg} ${this.pipeline.details.status.text}`;
},
tooltipTitle() {
return this.pipeline.details.status_tooltip;
},
},
template: `
<td class="commit-link">
<a
:class="cssClasses"
:href="detailsPath"
:title="tooltipTitle"
v-html="content">
</a>
</td>
......
......@@ -13,7 +13,6 @@ class PipelineEntity < Grape::Entity
expose :details do
expose :detailed_status, as: :status, with: StatusEntity
expose :status_tooltip
expose :duration
expose :finished_at
expose :stages, using: StageEntity
......@@ -82,8 +81,4 @@ class PipelineEntity < Grape::Entity
def detailed_status
pipeline.detailed_status(request.user)
end
def status_tooltip
pipeline.present(current_user: request.user).status_title
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