Sha256: 858c662ceb7d3b0a3ef82d56863822471e0fafa25a9e1b4fe10f3ee1490b59ea

Contents?: true

Size: 232 Bytes

Versions: 103

Compression:

Stored size: 232 Bytes

Contents

export const excludeAssignedRolesSearch = assignedRoles => {
  const searchString =
    assignedRoles.length === 0
      ? ''
      : `id !^ (${assignedRoles.map(role => role.id).join(', ')})`;
  return { search: searchString };
};

Version data entries

103 entries across 103 versions & 1 rubygems

Version Path
foreman_ansible-14.2.3 webpack/components/AnsibleRolesSwitcher/AnsibleRolesSwitcherHelpers.js
foreman_ansible-15.0.5 webpack/components/AnsibleRolesSwitcher/AnsibleRolesSwitcherHelpers.js
foreman_ansible-15.0.4 webpack/components/AnsibleRolesSwitcher/AnsibleRolesSwitcherHelpers.js
foreman_ansible-15.0.3 webpack/components/AnsibleRolesSwitcher/AnsibleRolesSwitcherHelpers.js
foreman_ansible-15.0.2 webpack/components/AnsibleRolesSwitcher/AnsibleRolesSwitcherHelpers.js
foreman_ansible-15.0.1 webpack/components/AnsibleRolesSwitcher/AnsibleRolesSwitcherHelpers.js
foreman_ansible-15.0.0 webpack/components/AnsibleRolesSwitcher/AnsibleRolesSwitcherHelpers.js
foreman_ansible-14.2.2 webpack/components/AnsibleRolesSwitcher/AnsibleRolesSwitcherHelpers.js
foreman_ansible-14.2.1 webpack/components/AnsibleRolesSwitcher/AnsibleRolesSwitcherHelpers.js
foreman_ansible-13.0.7 webpack/components/AnsibleRolesSwitcher/AnsibleRolesSwitcherHelpers.js
foreman_ansible-14.2.0 webpack/components/AnsibleRolesSwitcher/AnsibleRolesSwitcherHelpers.js
foreman_ansible-14.1.1 webpack/components/AnsibleRolesSwitcher/AnsibleRolesSwitcherHelpers.js
foreman_ansible-14.1.0 webpack/components/AnsibleRolesSwitcher/AnsibleRolesSwitcherHelpers.js
foreman_ansible-13.0.5 webpack/components/AnsibleRolesSwitcher/AnsibleRolesSwitcherHelpers.js
foreman_ansible-14.0.0 webpack/components/AnsibleRolesSwitcher/AnsibleRolesSwitcherHelpers.js
foreman_ansible-13.0.4 webpack/components/AnsibleRolesSwitcher/AnsibleRolesSwitcherHelpers.js
foreman_ansible-13.0.3 webpack/components/AnsibleRolesSwitcher/AnsibleRolesSwitcherHelpers.js
foreman_ansible-13.0.2 webpack/components/AnsibleRolesSwitcher/AnsibleRolesSwitcherHelpers.js
foreman_ansible-13.0.1 webpack/components/AnsibleRolesSwitcher/AnsibleRolesSwitcherHelpers.js
foreman_ansible-13.0.0 webpack/components/AnsibleRolesSwitcher/AnsibleRolesSwitcherHelpers.js