Sha256: 4ee3bc555f77640625542a44b6d2f1e6d29e5142ba47c4eb576cc6c8e6978f2f

Contents?: true

Size: 297 Bytes

Versions: 5

Compression:

Stored size: 297 Bytes

Contents

import { addSearch } from './pageParamsHelper';

export const preparePerPageOptions = opts =>
  opts.map(item => ({ title: item.toString(), value: item }));

export const refreshPage = (history, params = {}) => {
  const url = addSearch(history.location.pathname, params);
  history.push(url);
};

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
foreman_ansible-7.0.4 webpack/helpers/paginationHelper.js
foreman_ansible-7.0.3 webpack/helpers/paginationHelper.js
foreman_ansible-7.0.2 webpack/helpers/paginationHelper.js
foreman_ansible-7.0.1 webpack/helpers/paginationHelper.js
foreman_ansible-7.0.0 webpack/helpers/paginationHelper.js