Sha256: 7f229b0f4d123d4744a9fa49b491f4bdbe55bb97f348fba87d3c7ae02dcbb5a7

Contents?: true

Size: 329 Bytes

Versions: 80

Compression:

Stored size: 329 Bytes

Contents

export const getPerPageOptions = (urlPerPage, appPerPage) => {
  const initialValues = new Set([5, 10, 15, 25, 50]);
  initialValues.add(appPerPage);
  urlPerPage && initialValues.add(urlPerPage);
  const options = [...initialValues].sort((a, b) => a - b);
  return options.map(value => ({ title: value.toString(), value }));
};

Version data entries

80 entries across 80 versions & 1 rubygems

Version Path
foreman_rh_cloud-11.1.0 webpack/common/table/helpers.js
foreman_rh_cloud-10.0.3 webpack/common/table/helpers.js
foreman_rh_cloud-11.0.3 webpack/common/table/helpers.js
foreman_rh_cloud-9.0.59 webpack/common/table/helpers.js
foreman_rh_cloud-11.0.2 webpack/common/table/helpers.js
foreman_rh_cloud-11.0.1 webpack/common/table/helpers.js
foreman_rh_cloud-11.0.0 webpack/common/table/helpers.js
foreman_rh_cloud-9.0.58 webpack/common/table/helpers.js
foreman_rh_cloud-10.0.2 webpack/common/table/helpers.js
foreman_rh_cloud-9.0.57 webpack/common/table/helpers.js
foreman_rh_cloud-10.0.1 webpack/common/table/helpers.js
foreman_rh_cloud-9.0.56 webpack/common/table/helpers.js
foreman_rh_cloud-9.0.55 webpack/common/table/helpers.js
foreman_rh_cloud-9.0.54 webpack/common/table/helpers.js
foreman_rh_cloud-9.0.53 webpack/common/table/helpers.js
foreman_rh_cloud-9.0.52 webpack/common/table/helpers.js
foreman_rh_cloud-8.0.52 webpack/common/table/helpers.js
foreman_rh_cloud-9.0.51 webpack/common/table/helpers.js
foreman_rh_cloud-8.0.51 webpack/common/table/helpers.js
foreman_rh_cloud-7.0.48 webpack/common/table/helpers.js