From a09af60908b3e152ea6f9f7a03388d0738204c37 Mon Sep 17 00:00:00 2001 From: GZTime Date: Tue, 2 Apr 2024 00:05:56 +0800 Subject: [PATCH] fix(frontend): disable when update --- src/GZCTF/ClientApp/src/pages/admin/Settings.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/GZCTF/ClientApp/src/pages/admin/Settings.tsx b/src/GZCTF/ClientApp/src/pages/admin/Settings.tsx index b00b6d554..c5139c190 100644 --- a/src/GZCTF/ClientApp/src/pages/admin/Settings.tsx +++ b/src/GZCTF/ClientApp/src/pages/admin/Settings.tsx @@ -188,7 +188,6 @@ const Configs: FC = () => { }} /> - {t('admin.content.settings.container.title')} @@ -199,6 +198,7 @@ const Configs: FC = () => { placeholder="120" min={1} max={7200} + disabled={disabled} value={containerPolicy?.defaultLifetime ?? 120} onChange={(e) => { const num = e ? Math.min(Math.max(e, 1), 7200) : 120 @@ -211,6 +211,7 @@ const Configs: FC = () => { placeholder="120" min={1} max={7200} + disabled={disabled} value={containerPolicy?.extensionDuration ?? 120} onChange={(e) => { const num = e ? Math.min(Math.max(e, 1), 7200) : 120 @@ -223,6 +224,7 @@ const Configs: FC = () => { placeholder="10" min={1} max={360} + disabled={disabled} value={containerPolicy?.renewalWindow ?? 10} onChange={(e) => { const num = e ? Math.min(Math.max(e, 1), 360) : 10