Commit 26630149 authored by Matej Latin's avatar Matej Latin Committed by Andrew Fontaine

Replace the weight select deprecated button

parent 48f51b08
<script>
import { GlDeprecatedButton, GlDeprecatedDropdown, GlDeprecatedDropdownItem } from '@gitlab/ui';
import { GlButton, GlDeprecatedDropdown, GlDeprecatedDropdownItem } from '@gitlab/ui';
const ANY_WEIGHT = 'Any weight';
const NO_WEIGHT = 'None';
export default {
components: {
GlDeprecatedButton,
GlButton,
GlDeprecatedDropdown,
GlDeprecatedDropdownItem,
},
......@@ -71,14 +71,9 @@ export default {
<div class="block weight">
<div class="title gl-mb-3">
{{ __('Weight') }}
<gl-deprecated-button
v-if="canEdit"
variant="blank"
class="float-right"
@click="showDropdown"
>
<gl-button v-if="canEdit" variant="link" class="float-right" @click="showDropdown">
{{ __('Edit') }}
</gl-deprecated-button>
</gl-button>
</div>
<div :class="valueClass" :hidden="!dropdownHidden" class="value">{{ valueText }}</div>
......
import { mount } from '@vue/test-utils';
import WeightSelect from 'ee/boards/components/weight_select.vue';
import { GlDeprecatedButton, GlDeprecatedDropdown } from '@gitlab/ui';
import { GlButton, GlDeprecatedDropdown } from '@gitlab/ui';
describe('WeightSelect', () => {
let wrapper;
const editButton = () => wrapper.find(GlDeprecatedButton);
const editButton = () => wrapper.find(GlButton);
const valueContainer = () => wrapper.find('.value');
const weightDropdown = () => wrapper.find(GlDeprecatedDropdown);
const weightSelect = () => wrapper.find({ ref: 'weight-select' });
......
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