Commit 4f1dd2d1 authored by George Tsiolis's avatar George Tsiolis Committed by Denys Mishunov

Replace loading button in epic header

parent f8e8d27a
......@@ -6,7 +6,6 @@ import { __ } from '~/locale';
import tooltip from '~/vue_shared/directives/tooltip';
import Icon from '~/vue_shared/components/icon.vue';
import LoadingButton from '~/vue_shared/components/loading_button.vue';
import UserAvatarLink from '~/vue_shared/components/user_avatar/user_avatar_link.vue';
import TimeagoTooltip from '~/vue_shared/components/time_ago_tooltip.vue';
import GitlabTeamMemberBadge from '~/vue_shared/components/user_avatar/badges/gitlab_team_member_badge.vue';
......@@ -21,7 +20,6 @@ export default {
components: {
Icon,
GlDeprecatedButton,
LoadingButton,
UserAvatarLink,
TimeagoTooltip,
GitlabTeamMemberBadge,
......@@ -108,12 +106,13 @@ export default {
</div>
</div>
<div v-if="canUpdate" class="detail-page-header-actions js-issuable-actions">
<loading-button
:label="actionButtonText"
<gl-deprecated-button
:loading="epicStatusChangeInProgress"
:container-class="actionButtonClass"
:class="actionButtonClass"
@click="toggleEpicStatus(isEpicOpen)"
/>
>
{{ actionButtonText }}
</gl-deprecated-button>
</div>
<gl-deprecated-button
:aria-label="__('Toggle sidebar')"
......
......@@ -133,9 +133,7 @@ describe('EpicHeaderComponent', () => {
expect(actionsEl).not.toBeNull();
expect(actionsEl.querySelector('.js-btn-epic-action')).not.toBeNull();
expect(actionsEl.querySelector('.js-loading-button-label').innerText.trim()).toBe(
'Close epic',
);
expect(actionsEl.querySelector('.js-btn-epic-action').innerText.trim()).toBe('Close epic');
});
it('renders toggle sidebar button element', () => {
......
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