Commit 876c59cf authored by Kushal Pandya's avatar Kushal Pandya

Merge branch '214242-remove-deprecated-buttons-in-release-page' into 'master'

Removes all deprecated GlDeprecatedButtons buttons in the Releases page

Closes #214242

See merge request gitlab-org/gitlab!30941
parents d597839a 3ae05c5a
......@@ -3,7 +3,7 @@ import {
GlProgressBar,
GlLink,
GlBadge,
GlDeprecatedButton,
GlButton,
GlTooltipDirective,
GlSprintf,
} from '@gitlab/ui';
......@@ -17,7 +17,7 @@ export default {
GlProgressBar,
GlLink,
GlBadge,
GlDeprecatedButton,
GlButton,
GlSprintf,
},
directives: {
......@@ -134,13 +134,9 @@ export default {
<span :key="'bullet-' + milestone.id" class="append-right-4">&bull;</span>
</template>
<template v-if="shouldRenderShowMoreLink(index)">
<gl-deprecated-button
:key="'more-button-' + milestone.id"
variant="link"
@click="toggleShowAll"
>
<gl-button :key="'more-button-' + milestone.id" variant="link" @click="toggleShowAll">
{{ moreText }}
</gl-deprecated-button>
</gl-button>
</template>
</template>
</div>
......
---
title: Updated deprecated buttons in release page
merge_request: 30941
author: Özgür Adem Işıklı @iozguradem
type: added
import { mount } from '@vue/test-utils';
import { GlProgressBar, GlLink, GlBadge, GlDeprecatedButton } from '@gitlab/ui';
import { GlProgressBar, GlLink, GlBadge, GlButton } from '@gitlab/ui';
import { trimText } from 'helpers/text_helper';
import ReleaseBlockMilestoneInfo from '~/releases/components/release_block_milestone_info.vue';
import { milestones as originalMilestones } from '../mock_data';
......@@ -106,7 +106,7 @@ describe('Release block milestone info', () => {
const clickShowMoreFewerButton = () => {
milestoneListContainer()
.find(GlDeprecatedButton)
.find(GlButton)
.trigger('click');
return wrapper.vm.$nextTick();
......
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