{
- field.onChange(
+
+
-
-
- {isOverriding ? (
-
-
- {t(
- "siteAutoUpdateOverriding"
- )}
-
+ ) => {
+ field.onChange(
+ checked
+ );
+ form.setValue(
+ "autoUpdateOverrideOrg",
+ true
+ );
+ }}
+ disabled={
+ !hasAutoUpdateFeature
+ }
+ />
+ {isOverriding && (
{
form.setValue(
"autoUpdateOverrideOrg",
@@ -302,20 +301,12 @@ export default function GeneralPage() {
"siteAutoUpdateResetToOrg"
)}
-
- ) : (
- t(
- "siteAutoUpdateOrgDefault",
- {
- state: orgAutoUpdate
- ? t(
- "siteAutoUpdateEnabled"
- )
- : t(
- "siteAutoUpdateDisabled"
- )
- }
- )
+ )}
+
+