Commit 3ae05c5a authored by Özgür Adem Işıklı's avatar Özgür Adem Işıklı Committed by Kushal Pandya

Removes all deprecated GlDeprecatedButtons buttons in the Releases page

parent 59e842e5
...@@ -3,7 +3,7 @@ import { ...@@ -3,7 +3,7 @@ import {
GlProgressBar, GlProgressBar,
GlLink, GlLink,
GlBadge, GlBadge,
GlDeprecatedButton, GlButton,
GlTooltipDirective, GlTooltipDirective,
GlSprintf, GlSprintf,
} from '@gitlab/ui'; } from '@gitlab/ui';
...@@ -17,7 +17,7 @@ export default { ...@@ -17,7 +17,7 @@ export default {
GlProgressBar, GlProgressBar,
GlLink, GlLink,
GlBadge, GlBadge,
GlDeprecatedButton, GlButton,
GlSprintf, GlSprintf,
}, },
directives: { directives: {
...@@ -134,13 +134,9 @@ export default { ...@@ -134,13 +134,9 @@ export default {
<span :key="'bullet-' + milestone.id" class="append-right-4">&bull;</span> <span :key="'bullet-' + milestone.id" class="append-right-4">&bull;</span>
</template> </template>
<template v-if="shouldRenderShowMoreLink(index)"> <template v-if="shouldRenderShowMoreLink(index)">
<gl-deprecated-button <gl-button :key="'more-button-' + milestone.id" variant="link" @click="toggleShowAll">
:key="'more-button-' + milestone.id"
variant="link"
@click="toggleShowAll"
>
{{ moreText }} {{ moreText }}
</gl-deprecated-button> </gl-button>
</template> </template>
</template> </template>
</div> </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 { 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 { trimText } from 'helpers/text_helper';
import ReleaseBlockMilestoneInfo from '~/releases/components/release_block_milestone_info.vue'; import ReleaseBlockMilestoneInfo from '~/releases/components/release_block_milestone_info.vue';
import { milestones as originalMilestones } from '../mock_data'; import { milestones as originalMilestones } from '../mock_data';
...@@ -106,7 +106,7 @@ describe('Release block milestone info', () => { ...@@ -106,7 +106,7 @@ describe('Release block milestone info', () => {
const clickShowMoreFewerButton = () => { const clickShowMoreFewerButton = () => {
milestoneListContainer() milestoneListContainer()
.find(GlDeprecatedButton) .find(GlButton)
.trigger('click'); .trigger('click');
return wrapper.vm.$nextTick(); 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