From 167f63f4c01519cb0027291a2c0985207f186a87 Mon Sep 17 00:00:00 2001 From: Martin Hanzel Date: Mon, 1 Jul 2019 16:10:42 +0000 Subject: Don't show tooltips on Open and Closed boards --- app/views/shared/boards/components/_board.html.haml | 6 ++++-- changelogs/unreleased/mh-board-tooltips.yml | 5 +++++ 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 changelogs/unreleased/mh-board-tooltips.yml diff --git a/app/views/shared/boards/components/_board.html.haml b/app/views/shared/boards/components/_board.html.haml index fdb2a0a1843..6c0613605eb 100644 --- a/app/views/shared/boards/components/_board.html.haml +++ b/app/views/shared/boards/components/_board.html.haml @@ -19,8 +19,10 @@ %img.avatar.s20.has-tooltip{ height: "20", width: "20", ":src": "list.assignee.avatar", ":alt": "list.assignee.name" } .board-title-text - %span.board-title-main-text.has-tooltip.block-truncated{ "v-if": "list.type !== \"label\"", - ":title" => '((list.label && list.label.description) || list.title || "")', data: { container: "body" } } + %span.board-title-main-text.block-truncated{ "v-if": "list.type !== \"label\"", + ":title" => '((list.label && list.label.description) || list.title || "")', + data: { container: "body" }, + ":class": "{ 'has-tooltip': !['backlog', 'closed'].includes(list.type) }" } {{ list.title }} %span.board-title-sub-text.prepend-left-5.has-tooltip{ "v-if": "list.type === \"assignee\"", diff --git a/changelogs/unreleased/mh-board-tooltips.yml b/changelogs/unreleased/mh-board-tooltips.yml new file mode 100644 index 00000000000..06fc64c52a7 --- /dev/null +++ b/changelogs/unreleased/mh-board-tooltips.yml @@ -0,0 +1,5 @@ +--- +title: "'Open' and 'Closed' issue board lists no longer display a redundant tooltip" +merge_request: 30187 +author: +type: fixed -- cgit v1.2.1