From cad77ce0bf68caf5baa99b82435123e59a3cb4e3 Mon Sep 17 00:00:00 2001 From: Joel Date: Wed, 15 Oct 2025 15:29:09 +0800 Subject: [PATCH] chore: audio config readonly --- .../app/configuration/config/config-audio.tsx | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/web/app/components/app/configuration/config/config-audio.tsx b/web/app/components/app/configuration/config/config-audio.tsx index 5600f8cbb6..aed236bcc6 100644 --- a/web/app/components/app/configuration/config/config-audio.tsx +++ b/web/app/components/app/configuration/config/config-audio.tsx @@ -16,7 +16,7 @@ const ConfigAudio: FC = () => { const { t } = useTranslation() const file = useFeatures(s => s.features.file) const featuresStore = useFeaturesStore() - const { isShowAudioConfig } = useContext(ConfigContext) + const { isShowAudioConfig, readonly } = useContext(ConfigContext) const isAudioEnabled = file?.allowed_file_types?.includes(SupportUploadFileTypes.audio) ?? false @@ -64,14 +64,16 @@ const ConfigAudio: FC = () => { } /> -
-
- -
+ {!readonly && ( +
+
+ +
+ )} ) }