RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.
Go agent-harnessagent-native-databaseagentic-aiagentic-retrievalagentic-searchaiai-agentscontext-enginecontext-engineeringcontext-managementharness-engineeringknowledge-compilationragretrieval-augmented-generationretrieval-harnesssearch-harness
Fix: Fixed the issue of not being able to select the time zone in the user center. (#11298)
chanx9cef3a262506
diff --git a/web/src/components/ui/modal/modal.tsx b/web/src/components/ui/modal/modal.tsxindex acae6c147a..af516b1e67 100644--- a/web/src/components/ui/modal/modal.tsx+++ b/web/src/components/ui/modal/modal.tsx@@ -86,6 +86,9 @@ const Modal: ModalType = ({onOk?.();}, [onOk, onOpenChange]);const handleChange = (open: boolean) => {+ if (!open && !maskClosable) {+ return;+ }onOpenChange?.(open);console.log('open', open, onOpenChange);if (open && !disabled) {@@ -185,6 +188,7 @@ const Modal: ModalType = ({<buttontype="button"className="flex h-7 w-7 items-center justify-center rounded-full hover:bg-muted focus-visible:outline-none"+ onClick={handleCancel}>{closeIcon}</button>diff --git a/web/src/pages/user-setting/profile/index.tsx b/web/src/pages/user-setting/profile/index.tsxindex dceb2cdf3f..5c2741cf63 100644--- a/web/src/pages/user-setting/profile/index.tsx+++ b/web/src/pages/user-setting/profile/index.tsx@@ -13,13 +13,7 @@ import {} from '@/components/ui/form';import { Input } from '@/components/ui/input';import { Modal } from '@/components/ui/modal/modal';-import {- Select,- SelectContent,- SelectItem,- SelectTrigger,- SelectValue,-} from '@/components/ui/select';+import { RAGFlowSelect } from '@/components/ui/select';import { useTranslate } from '@/hooks/common-hooks';import { TimezoneList } from '@/pages/user-setting/constants';import { zodResolver } from '@hookform/resolvers/zod';@@ -230,6 +224,7 @@ const ProfilePage: FC = () => {title={modalTitle[editType]}open={isEditing}showfooter={false}+ maskClosable={false}titleClassName="text-base"onOpenChange={(open) => {if (!open) {@@ -281,23 +276,14 @@ const ProfilePage: FC = () => {<FormLabel className="text-sm text-text-secondary whitespace-nowrap">{t('timezone')}</FormLabel>- <Select+ <RAGFlowSelect+ options={TimezoneList.map((timeStr) => {+ return { value: timeStr, label: timeStr };+ })}+ placeholder="Select a timeZone"onValueChange={field.onChange}value={field.value}- >- <FormControl className="w-full bg-bg-input border-border-default">- <SelectTrigger>- <SelectValue placeholder="Select a timeZone" />- </SelectTrigger>- </FormControl>- <SelectContent>- {TimezoneList.map((timeStr) => (- <SelectItem key={timeStr} value={timeStr}>- {timeStr}- </SelectItem>- ))}- </SelectContent>- </Select>+ /></div><div className="flex w-full pt-1"><div className="w-1/4"></div>