Merge branch '61821-tooltip-consistency' into 'master'
Resolve "Tooltip Consistency" Closes #61821 See merge request gitlab-org/gitlab-ce!28839
This commit is contained in:
commit
2ad5b30b6c
3 changed files with 17 additions and 11 deletions
|
@ -254,16 +254,17 @@ export default {
|
|||
<diff-stats :added-lines="diffFile.added_lines" :removed-lines="diffFile.removed_lines" />
|
||||
<div class="btn-group" role="group">
|
||||
<template v-if="diffFile.blob && diffFile.blob.readable_text">
|
||||
<button
|
||||
:disabled="!diffHasDiscussions(diffFile)"
|
||||
:class="{ active: hasExpandedDiscussions }"
|
||||
:title="s__('MergeRequests|Toggle comments for this file')"
|
||||
class="js-btn-vue-toggle-comments btn"
|
||||
type="button"
|
||||
@click="handleToggleDiscussions"
|
||||
>
|
||||
<icon name="comment" />
|
||||
</button>
|
||||
<span v-gl-tooltip.hover :title="s__('MergeRequests|Toggle comments for this file')">
|
||||
<gl-button
|
||||
:disabled="!diffHasDiscussions(diffFile)"
|
||||
:class="{ active: hasExpandedDiscussions }"
|
||||
class="js-btn-vue-toggle-comments btn"
|
||||
type="button"
|
||||
@click="handleToggleDiscussions"
|
||||
>
|
||||
<icon name="comment" />
|
||||
</gl-button>
|
||||
</span>
|
||||
|
||||
<edit-button
|
||||
v-if="!diffFile.deleted_file"
|
||||
|
|
|
@ -38,7 +38,7 @@ export default {
|
|||
|
||||
<template>
|
||||
<gl-button
|
||||
v-gl-tooltip.bottom
|
||||
v-gl-tooltip.top
|
||||
:href="editPath"
|
||||
:title="__('Edit file')"
|
||||
class="js-edit-blob"
|
||||
|
|
5
changelogs/unreleased/61821-tooltip-consistency.yml
Normal file
5
changelogs/unreleased/61821-tooltip-consistency.yml
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
title: Resolve Tooltip Consistency
|
||||
merge_request: 28839
|
||||
author:
|
||||
type: fixed
|
Loading…
Reference in a new issue