Skip to content

Instantly share code, notes, and snippets.

@Quaker762
Created July 23, 2020 03:50
Show Gist options
  • Save Quaker762/f6c3f55fde36d433ce3eb6c473fe1a1e to your computer and use it in GitHub Desktop.
Save Quaker762/f6c3f55fde36d433ce3eb6c473fe1a1e to your computer and use it in GitHub Desktop.
const additionalIPv4Labels: {
[key: string]: boolean,
} = {
none: true,
'4': false,
'8': false,
'16': false,
};
{makeEnumOptions(
dipnasSingleEndOrdersValuesAdditionalIPv4,
dipnasSingleEndOrdersLabelsAdditionalIPv4,
getFieldValue('ipAddressProtocol') ==
dipnasSingleEndOrdersEnumIPAddressProtocolIPv4 ||
getFieldValue('ipAddressProtocol') ==
dipnasSingleEndOrdersEnumIPAddressProtocolDualStack
? program
? program.validOptionsFilter(current, 'additionalIPv4')
: null
: additionalIPv4Labels
)}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment