mirror of
https://github.com/mealie-recipes/mealie.git
synced 2026-02-26 01:33:12 -05:00
chore: refactor data management pages (#7107)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { fieldTypes } from "../forms";
|
||||
import { validators } from "../use-validators";
|
||||
import type { AutoFormItems } from "~/types/auto-forms";
|
||||
|
||||
export const useCommonSettingsForm = () => {
|
||||
@@ -11,7 +12,7 @@ export const useCommonSettingsForm = () => {
|
||||
hint: i18n.t("group.enable-public-access-description"),
|
||||
varName: "makeGroupRecipesPublic",
|
||||
type: fieldTypes.BOOLEAN,
|
||||
rules: ["required"],
|
||||
rules: [validators.required],
|
||||
},
|
||||
{
|
||||
section: i18n.t("data-pages.data-management"),
|
||||
@@ -19,7 +20,7 @@ export const useCommonSettingsForm = () => {
|
||||
hint: i18n.t("user-registration.use-seed-data-description"),
|
||||
varName: "useSeedData",
|
||||
type: fieldTypes.BOOLEAN,
|
||||
rules: ["required"],
|
||||
rules: [validators.required],
|
||||
},
|
||||
]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user