From 6f4518ebf72f4285021735e7d8efb2b14658c4d8 Mon Sep 17 00:00:00 2001 From: Joel Date: Wed, 15 Oct 2025 15:27:18 +0800 Subject: [PATCH] chore: document readonly --- .../configuration/config/config-document.tsx | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/web/app/components/app/configuration/config/config-document.tsx b/web/app/components/app/configuration/config/config-document.tsx index 9300bbc712..06f608c6f0 100644 --- a/web/app/components/app/configuration/config/config-document.tsx +++ b/web/app/components/app/configuration/config/config-document.tsx @@ -16,7 +16,7 @@ const ConfigDocument: FC = () => { const { t } = useTranslation() const file = useFeatures(s => s.features.file) const featuresStore = useFeaturesStore() - const { isShowDocumentConfig } = useContext(ConfigContext) + const { isShowDocumentConfig, readonly } = useContext(ConfigContext) const isDocumentEnabled = file?.allowed_file_types?.includes(SupportUploadFileTypes.document) ?? false @@ -64,14 +64,16 @@ const ConfigDocument: FC = () => { } /> -
-
- -
+ {!readonly && ( +
+
+ +
+ )} ) }