mirror of https://github.com/portainer/portainer
fix(settings): fix settings save/update EE-3604 (#8180)
parent
2188005b48
commit
b59a0ba823
|
@ -174,6 +174,7 @@ angular.module('portainer.app').controller('SettingsController', [
|
||||||
LogoURL: $scope.formValues.customLogo ? $scope.settings.LogoURL : '',
|
LogoURL: $scope.formValues.customLogo ? $scope.settings.LogoURL : '',
|
||||||
EnableTelemetry: $scope.formValues.enableTelemetry,
|
EnableTelemetry: $scope.formValues.enableTelemetry,
|
||||||
TemplatesURL: $scope.settings.TemplatesURL,
|
TemplatesURL: $scope.settings.TemplatesURL,
|
||||||
|
EdgeAgentCheckinInterval: $scope.settings.EdgeAgentCheckinInterval,
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.state.actionInProgress = true;
|
$scope.state.actionInProgress = true;
|
||||||
|
|
|
@ -60,6 +60,18 @@ export function DeploymentSyncOptions() {
|
||||||
>
|
>
|
||||||
{({ errors, setFieldValue, values, isValid, dirty }) => (
|
{({ errors, setFieldValue, values, isValid, dirty }) => (
|
||||||
<Form className="form-horizontal">
|
<Form className="form-horizontal">
|
||||||
|
<FormSection title="Check-in Intervals">
|
||||||
|
<EdgeCheckinIntervalField
|
||||||
|
value={values.EdgeAgentCheckinInterval}
|
||||||
|
onChange={(value) =>
|
||||||
|
setFieldValue('EdgeAgentCheckinInterval', value)
|
||||||
|
}
|
||||||
|
isDefaultHidden
|
||||||
|
label="Edge agent default poll frequency"
|
||||||
|
tooltip="Interval used by default by each Edge agent to check in with the Portainer instance. Affects Edge environment management and Edge compute features."
|
||||||
|
/>
|
||||||
|
</FormSection>
|
||||||
|
|
||||||
<FormControl
|
<FormControl
|
||||||
inputId="edge_async_mode"
|
inputId="edge_async_mode"
|
||||||
label="Use Async mode by default"
|
label="Use Async mode by default"
|
||||||
|
@ -83,18 +95,6 @@ export function DeploymentSyncOptions() {
|
||||||
Enabling Async disables the tunnel function.
|
Enabling Async disables the tunnel function.
|
||||||
</TextTip>
|
</TextTip>
|
||||||
|
|
||||||
<FormSection title="Check-in Intervals">
|
|
||||||
<EdgeCheckinIntervalField
|
|
||||||
value={values.EdgeAgentCheckinInterval}
|
|
||||||
onChange={(value) =>
|
|
||||||
setFieldValue('EdgeAgentCheckinInterval', value)
|
|
||||||
}
|
|
||||||
isDefaultHidden
|
|
||||||
label="Edge agent default poll frequency"
|
|
||||||
tooltip="Interval used by default by each Edge agent to check in with the Portainer instance. Affects Edge environment management and Edge compute features."
|
|
||||||
/>
|
|
||||||
</FormSection>
|
|
||||||
|
|
||||||
{values.Edge.AsyncMode && (
|
{values.Edge.AsyncMode && (
|
||||||
<FormSection title="Async Check-in Intervals">
|
<FormSection title="Async Check-in Intervals">
|
||||||
<EdgeAsyncIntervalsForm
|
<EdgeAsyncIntervalsForm
|
||||||
|
|
Loading…
Reference in New Issue