feat: add allow auto update option for profiles and update UI components

This commit is contained in:
Tunglies
2025-10-18 17:03:12 +08:00
parent 98725bbecf
commit c2d7bf296a
7 changed files with 37 additions and 2 deletions

View File

@@ -377,6 +377,17 @@ export function ProfileViewer({ onChange, ref }: ProfileViewerProps) {
</StyledBox>
)}
/>
<Controller
name="option.allow_auto_update"
control={control}
render={({ field }) => (
<StyledBox>
<InputLabel>{t("Allow Auto Update")}</InputLabel>
<Switch checked={field.value} {...field} color="primary" />
</StyledBox>
)}
/>
</>
)}
</BaseDialog>