Commit d095b936 authored by Jose Ivan Vargas's avatar Jose Ivan Vargas

Merge branch '219805-remove-gl-deprecated-button' into 'master'

Replaced gl-deprecated-button with gl-button

Closes #219805

See merge request gitlab-org/gitlab!34308
parents 520ac5e9 db73a56d
<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