From 30e23ea5b491421533e93e486a0910688a3a48b6 Mon Sep 17 00:00:00 2001 From: matias-portainer <104775949+matias-portainer@users.noreply.github.com> Date: Thu, 10 Nov 2022 16:13:20 -0300 Subject: [PATCH] fix(ui): tidy up Edge Devices configuration EE-3604 (#7797) --- .../components/EdgeCheckInIntervalField.tsx | 21 ++++++++++++-- app/portainer/views/settings/settings.html | 11 ++++++++ .../views/settings/settingsController.js | 7 +++++ .../FormControl/FormControl.tsx | 6 +++- .../form-components/FormControl/index.ts | 1 + .../DeploymentSyncOptions.tsx | 28 ++++++++++--------- 6 files changed, 57 insertions(+), 17 deletions(-) diff --git a/app/edge/components/EdgeCheckInIntervalField.tsx b/app/edge/components/EdgeCheckInIntervalField.tsx index f8b6e85ff..f01f8ba60 100644 --- a/app/edge/components/EdgeCheckInIntervalField.tsx +++ b/app/edge/components/EdgeCheckInIntervalField.tsx @@ -4,7 +4,7 @@ import { r2a } from '@/react-tools/react2angular'; import { useSettings } from '@/react/portainer/settings/queries'; import { withReactQuery } from '@/react-tools/withReactQuery'; -import { FormControl } from '@@/form-components/FormControl'; +import { FormControl, Size } from '@@/form-components/FormControl'; import { Select } from '@@/form-components/Input'; interface Props { @@ -14,6 +14,7 @@ interface Props { label?: string; tooltip?: string; readonly?: boolean; + size?: Size; } export const checkinIntervalOptions = [ @@ -42,11 +43,17 @@ export function EdgeCheckinIntervalField({ isDefaultHidden = false, label = 'Poll frequency', tooltip = 'Interval used by this Edge agent to check in with the Portainer instance. Affects Edge environment management and Edge compute features.', + size = 'small', }: Props) { const options = useOptions(isDefaultHidden); return ( - +