Skip to content

Commit

Permalink
fix(frontend): disable when update
Browse files Browse the repository at this point in the history
  • Loading branch information
GZTimeWalker committed Apr 1, 2024
1 parent dd4c79d commit a09af60
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/GZCTF/ClientApp/src/pages/admin/Settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,6 @@ const Configs: FC = () => {
}}
/>
</Stack>

<Stack>
<Title order={2}>{t('admin.content.settings.container.title')}</Title>
<Divider />
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit a09af60

Please sign in to comment.