Remove tooltip from API and vue, follow up:
https://gitlab.com/gitlab-org/gitlab-ce/issues/30511
This commit is contained in:
parent
34eea29511
commit
33deaaf306
2 changed files with 1 additions and 11 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue