Commit db73a56d authored by Emily Ring's avatar Emily Ring Committed by Jose Ivan Vargas

Replaced gl-deprecated-button with gl-button

parent ae3cf188
<script> <script>
import { GlDeprecatedButton, GlLoadingIcon } from '@gitlab/ui'; import { GlButton, GlLoadingIcon } from '@gitlab/ui';
import { __ } from '~/locale'; import { __ } from '~/locale';
import Icon from '~/vue_shared/components/icon.vue'; import Icon from '~/vue_shared/components/icon.vue';
export default { export default {
components: { components: {
GlDeprecatedButton, GlButton,
GlLoadingIcon, GlLoadingIcon,
Icon, Icon,
}, },
...@@ -58,16 +58,17 @@ export default { ...@@ -58,16 +58,17 @@ export default {
</div> </div>
<template v-else> <template v-else>
<gl-deprecated-button <button
class="btn-blank btn s32 square append-right-default" class="btn-blank btn s32 square append-right-default"
type="button"
:aria-label="ariaLabel" :aria-label="ariaLabel"
:disabled="isLoading" :disabled="isLoading"
@click="toggleCollapsed" @click="toggleCollapsed"
> >
<gl-loading-icon v-if="isLoading" /> <gl-loading-icon v-if="isLoading" />
<icon v-else :name="arrowIconName" class="js-icon" /> <icon v-else :name="arrowIconName" class="js-icon" />
</gl-deprecated-button> </button>
<gl-deprecated-button <gl-button
variant="link" variant="link"
class="js-title" class="js-title"
:disabled="isLoading" :disabled="isLoading"
...@@ -76,7 +77,7 @@ export default { ...@@ -76,7 +77,7 @@ export default {
> >
<template v-if="isCollapsed">{{ title }}</template> <template v-if="isCollapsed">{{ title }}</template>
<template v-else>{{ __('Collapse') }}</template> <template v-else>{{ __('Collapse') }}</template>
</gl-deprecated-button> </gl-button>
</template> </template>
</div> </div>
......
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