Commit 7b16183d authored by Ezekiel Kigbo's avatar Ezekiel Kigbo

Merge branch 'msj-migrate-toggle-replies-widget' into 'master'

Migrate toggle replies widget from Bootstrap to GlButton

See merge request gitlab-org/gitlab!45780
parents f68c7375 9fd0d234
<script> <script>
import { uniqBy } from 'lodash'; import { uniqBy } from 'lodash';
import { GlIcon } from '@gitlab/ui'; import { GlButton, GlIcon } from '@gitlab/ui';
import UserAvatarLink from '~/vue_shared/components/user_avatar/user_avatar_link.vue'; import UserAvatarLink from '~/vue_shared/components/user_avatar/user_avatar_link.vue';
import TimeAgoTooltip from '~/vue_shared/components/time_ago_tooltip.vue'; import TimeAgoTooltip from '~/vue_shared/components/time_ago_tooltip.vue';
export default { export default {
components: { components: {
GlButton,
GlIcon, GlIcon,
UserAvatarLink, UserAvatarLink,
TimeAgoTooltip, TimeAgoTooltip,
...@@ -57,14 +58,15 @@ export default { ...@@ -57,14 +58,15 @@ export default {
tooltip-placement="bottom" tooltip-placement="bottom"
/> />
</div> </div>
<button <gl-button
class="btn btn-link js-replies-text" class="js-replies-text"
category="tertiary"
variant="link"
data-qa-selector="expand_replies_button" data-qa-selector="expand_replies_button"
type="button"
@click="toggle" @click="toggle"
> >
{{ replies.length }} {{ n__('reply', 'replies', replies.length) }} {{ replies.length }} {{ n__('reply', 'replies', replies.length) }}
</button> </gl-button>
{{ __('Last reply by') }} {{ __('Last reply by') }}
<a :href="lastReply.author.path" class="btn btn-link author-link"> <a :href="lastReply.author.path" class="btn btn-link author-link">
{{ lastReply.author.name }} {{ lastReply.author.name }}
......
---
title: Migrate toggle replies widget from Bootstrap to GlButton
merge_request: 45780
author:
type: other
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