ManageIQ/manageiq-ui-classic

View on GitHub
app/javascript/components/vm-cloud-add-remove-security-group-form/vm-cloud-add-security-form.schema.js

Summary

Maintainability
A
0 mins
Test Coverage
import { componentTypes } from '@@ddf';

function createSchema(securityGroups) {
  const fields = [
    {
      component: componentTypes.SELECT,
      id: 'security_group',
      name: 'security_group',
      label: __('Security Group'),
      placeholder: __('<Choose>'),
      includeEmpty: true,
      options: securityGroups,
    },
  ];
  return { fields };
}

export default createSchema;