Sha256: 8e7f2c5cd1c6049b62eddb48066e92db9e45933cb224816cfaa24ff83d7cbdfc

Contents?: true

Size: 441 Bytes

Versions: 29

Compression:

Stored size: 441 Bytes

Contents

export const STATUS = {
  PENDING: 'PENDING',
  RESOLVED: 'RESOLVED',
  ERROR: 'ERROR',
};

export const getControllerSearchProps = (
  controller,
  id = 'searchBar',
  canCreate = true
) => ({
  controller,
  autocomplete: {
    id,
    searchQuery: '',
    url: `${controller}/auto_complete_search`,
    useKeyShortcuts: true,
  },
  bookmarks: {
    url: '/api/bookmarks',
    canCreate,
    documentationUrl: `4.1.5Searching`,
  },
});

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
foreman_remote_execution-4.4.0 webpack/__mocks__/foremanReact/constants.js
foreman_remote_execution-4.3.1 webpack/__mocks__/foremanReact/constants.js
foreman_remote_execution-4.3.0 webpack/__mocks__/foremanReact/constants.js
foreman_remote_execution-4.2.3 webpack/__mocks__/foremanReact/constants.js
foreman_remote_execution-4.2.2 webpack/__mocks__/foremanReact/constants.js
foreman_remote_execution-4.2.1 webpack/__mocks__/foremanReact/constants.js
foreman_remote_execution-4.2.0 webpack/__mocks__/foremanReact/constants.js
foreman_remote_execution-4.1.0 webpack/__mocks__/foremanReact/constants.js
foreman_remote_execution-4.0.0 webpack/__mocks__/foremanReact/constants.js