Commit ba8a7429 authored by Natalia Tepluhina's avatar Natalia Tepluhina

Merge branch '219772-migrate-clear-chart-filters-buttons' into 'master'

Migrating deprecated button on the Productivity Analysis page

Closes #219772

See merge request gitlab-org/gitlab!42339
parents 61350e7b 97de1a42
...@@ -5,7 +5,7 @@ import { ...@@ -5,7 +5,7 @@ import {
GlLoadingIcon, GlLoadingIcon,
GlDeprecatedDropdown, GlDeprecatedDropdown,
GlDeprecatedDropdownItem, GlDeprecatedDropdownItem,
GlDeprecatedButton, GlButton,
GlTooltipDirective, GlTooltipDirective,
GlIcon, GlIcon,
} from '@gitlab/ui'; } from '@gitlab/ui';
...@@ -27,7 +27,7 @@ export default { ...@@ -27,7 +27,7 @@ export default {
GlDeprecatedDropdown, GlDeprecatedDropdown,
GlDeprecatedDropdownItem, GlDeprecatedDropdownItem,
GlColumnChart, GlColumnChart,
GlDeprecatedButton, GlButton,
GlIcon, GlIcon,
MetricChart, MetricChart,
Scatterplot, Scatterplot,
...@@ -182,14 +182,14 @@ export default { ...@@ -182,14 +182,14 @@ export default {
<template v-if="showAppContent"> <template v-if="showAppContent">
<div class="d-flex justify-content-between"> <div class="d-flex justify-content-between">
<h4>{{ s__('ProductivityAnalytics|Merge Requests') }}</h4> <h4>{{ s__('ProductivityAnalytics|Merge Requests') }}</h4>
<gl-deprecated-button <gl-button
v-if="isFilteringByDaysToMerge" v-if="isFilteringByDaysToMerge"
ref="clearChartFiltersBtn" ref="clearChartFiltersBtn"
class="btn-link float-right" class="btn-link float-right"
type="button" type="button"
variant="default" variant="default"
@click="resetMainChartSelection()" @click="resetMainChartSelection()"
>{{ __('Clear chart filters') }}</gl-deprecated-button >{{ __('Clear chart filters') }}</gl-button
> >
</div> </div>
<metric-chart <metric-chart
...@@ -324,13 +324,9 @@ export default { ...@@ -324,13 +324,9 @@ export default {
</span> </span>
</gl-deprecated-dropdown-item> </gl-deprecated-dropdown-item>
</gl-deprecated-dropdown> </gl-deprecated-dropdown>
<gl-deprecated-button <gl-button v-gl-tooltip.hover :title="sortTooltipTitle" @click="toggleSortOrder">
v-gl-tooltip.hover
:title="sortTooltipTitle"
@click="toggleSortOrder"
>
<gl-icon :name="sortIcon" /> <gl-icon :name="sortIcon" />
</gl-deprecated-button> </gl-button>
</div> </div>
</div> </div>
</div> </div>
......
...@@ -13,7 +13,7 @@ import { ...@@ -13,7 +13,7 @@ import {
GlLoadingIcon, GlLoadingIcon,
GlDeprecatedDropdown, GlDeprecatedDropdown,
GlDeprecatedDropdownItem, GlDeprecatedDropdownItem,
GlDeprecatedButton, GlButton,
} from '@gitlab/ui'; } from '@gitlab/ui';
import { GlColumnChart } from '@gitlab/ui/dist/charts'; import { GlColumnChart } from '@gitlab/ui/dist/charts';
import UrlSyncMixin from 'ee/analytics/shared/mixins/url_sync_mixin'; import UrlSyncMixin from 'ee/analytics/shared/mixins/url_sync_mixin';
...@@ -108,7 +108,7 @@ describe('ProductivityApp component', () => { ...@@ -108,7 +108,7 @@ describe('ProductivityApp component', () => {
const findScatterplotMetricChart = () => wrapper.find({ ref: 'scatterplot' }); const findScatterplotMetricChart = () => wrapper.find({ ref: 'scatterplot' });
const findMrTableSortSection = () => wrapper.find('.js-mr-table-sort'); const findMrTableSortSection = () => wrapper.find('.js-mr-table-sort');
const findSortFieldDropdown = () => findMrTableSortSection().find(GlDeprecatedDropdown); const findSortFieldDropdown = () => findMrTableSortSection().find(GlDeprecatedDropdown);
const findSortOrderToggle = () => findMrTableSortSection().find(GlDeprecatedButton); const findSortOrderToggle = () => findMrTableSortSection().find(GlButton);
const findMrTableSection = () => wrapper.find('.js-mr-table'); const findMrTableSection = () => wrapper.find('.js-mr-table');
const findMrTable = () => findMrTableSection().find(MergeRequestTable); const findMrTable = () => findMrTableSection().find(MergeRequestTable);
......
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