Commit 41a7da9c authored by Jose Ivan Vargas's avatar Jose Ivan Vargas

Merge branch...

Merge branch '219819-replace-gl-deprecated-button-with-gl-button-in-ee-app-assets-javascripts-epic-components' into 'master'

Replace GlDeprecatedButton with GlButton in sidebar datepicker

Closes #219819

See merge request gitlab-org/gitlab!37602
parents 1b247fc9 b2af99d6
<script>
import { uniqueId } from 'lodash';
import { GlLoadingIcon, GlDeprecatedButton } from '@gitlab/ui';
import { GlLoadingIcon, GlButton } from '@gitlab/ui';
import { __, s__ } from '~/locale';
import { dateInWords } from '~/lib/utils/datetime_utility';
......@@ -26,7 +26,7 @@ export default {
CollapsedCalendarIcon,
ToggleSidebar,
GlLoadingIcon,
GlDeprecatedButton,
GlButton,
},
props: {
sidebarCollapsed: {
......@@ -201,7 +201,7 @@ export default {
<gl-loading-icon v-if="dateSaveInProgress" :inline="true" />
<div class="float-right d-flex">
<icon v-popover="popoverOptions" name="question-o" class="help-icon gl-mr-2" tabindex="0" />
<gl-deprecated-button
<gl-button
v-show="canUpdate && !editing"
ref="editButton"
variant="link"
......@@ -209,7 +209,8 @@ export default {
@click="startEditing"
>
{{ __('Edit') }}
</gl-deprecated-button>
</gl-button>
<toggle-sidebar
v-if="showToggleSidebar"
:collapsed="sidebarCollapsed"
......@@ -249,14 +250,14 @@ export default {
/>
<span v-if="selectedAndEditable" class="no-value d-flex">
&nbsp;&ndash;&nbsp;
<gl-deprecated-button
<gl-button
ref="removeButton"
variant="link"
class="btn-sidebar-date-remove"
@click="newDateSelected(null)"
>
{{ __('remove') }}
</gl-deprecated-button>
</gl-button>
</span>
</template>
<span v-else class="no-value"> {{ __('None') }} </span>
......
---
title: Replace GlDeprecatedButton with GlButton
merge_request: 37602
author:
type: other
......@@ -30,15 +30,17 @@ exports[`SidebarDatePicker renders expected template 1`] = `
tabindex="0"
/>
<gl-deprecated-button-stub
<gl-button-stub
category="tertiary"
class="btn-sidebar-action"
size="md"
icon=""
size="medium"
variant="link"
>
Edit
</gl-deprecated-button-stub>
</gl-button-stub>
<!---->
</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