Update setting is working

Adjust the ui

Adjust description
This commit is contained in:
Owen
2026-05-21 16:21:23 -07:00
parent 6d4afd0953
commit 4530aac4f3
5 changed files with 85 additions and 71 deletions
+6 -8
View File
@@ -217,6 +217,7 @@ function GeneralSectionForm({ org }: SectionFormProps) {
title: t("orgUpdated"),
description: t("orgUpdatedDescription")
});
router.refresh();
} catch (e) {
toast({
@@ -260,6 +261,9 @@ function GeneralSectionForm({ org }: SectionFormProps) {
)}
/>
<PaidFeaturesAlert
tiers={tierMatrix.newtAutoUpdate}
/>
<FormField
control={form.control}
name="settingsEnableGlobalNewtAutoUpdate"
@@ -271,17 +275,11 @@ function GeneralSectionForm({ org }: SectionFormProps) {
label={t("newtAutoUpdate")}
checked={field.value}
onCheckedChange={field.onChange}
disabled={
!hasAutoUpdateFeature
}
disabled={!hasAutoUpdateFeature}
/>
</FormControl>
<FormDescription>
{hasAutoUpdateFeature
? t("newtAutoUpdateDescription")
: t(
"newtAutoUpdateDisabledDescription"
)}
{t("newtAutoUpdateDescription")}
</FormDescription>
<FormMessage />
</FormItem>