-
-
(
-
-
- {t("sites")}
-
-
-
-
-
-
-
-
- {
- setSelectedSites(
- sites
- );
- field.onChange(
- sites.map(
- (
- s
- ) =>
- s.siteId
- )
- );
- }}
- />
-
-
-
-
- )}
- />
-
-
- {
- const modeOptions: OptionSelectOption[] =
- [
- {
- value: "host",
- label: t(
- modeHostKey
- )
- },
- {
- value: "cidr",
- label: t(
- modeCidrKey
- )
- },
- ...(!disableEnterpriseFeatures
- ? [
- {
- value: "http" as const,
- label: t(
- modeHttpKey
- )
- },
- {
- value: "ssh" as const,
- label: t(
- modeSshKey
- )
- }
- ]
- : [])
- ];
- return (
-
-
- {t(modeLabelKey)}
-
-
- options={
- modeOptions
- }
- value={field.value}
- onChange={
- field.onChange
- }
- cols={3}
- />
-
-
- );
- }}
- />
-
-