diff options
Diffstat (limited to 'app/assets/javascripts/cycle_analytics/store/getters.js')
-rw-r--r-- | app/assets/javascripts/cycle_analytics/store/getters.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/assets/javascripts/cycle_analytics/store/getters.js b/app/assets/javascripts/cycle_analytics/store/getters.js index 77c285f5ce0..962e1d50d12 100644 --- a/app/assets/javascripts/cycle_analytics/store/getters.js +++ b/app/assets/javascripts/cycle_analytics/store/getters.js @@ -1,6 +1,7 @@ import dateFormat from 'dateformat'; import { dateFormats } from '~/analytics/shared/constants'; import { filterToQueryObject } from '~/vue_shared/components/filtered_search_bar/filtered_search_utils'; +import { PAGINATION_TYPE } from '../constants'; import { transformStagesForPathNavigation, filterStagesByHiddenStatus } from '../utils'; export const pathNavigationData = ({ stages, medians, stageCounts, selectedStage }) => { @@ -21,6 +22,13 @@ export const requestParams = (state) => { return { requestPath: fullPath, valueStreamId, stageId }; }; +export const paginationParams = ({ pagination: { page, sort, direction } }) => ({ + pagination: PAGINATION_TYPE, + sort, + direction, + page, +}); + const filterBarParams = ({ filters }) => { const { authors: { selected: selectedAuthor }, |