mirror of
https://github.com/Myzel394/kleckrelay-website.git
synced 2025-06-19 15:55:26 +02:00
feat: Show hour unit on image proxy storage lifetime field
This commit is contained in:
parent
ff18b33aaf
commit
ca7cd2be14
@ -360,7 +360,9 @@
|
||||
},
|
||||
"imageProxyStorageLifeTimeInHours": {
|
||||
"label": "Image proxy storage lifetime",
|
||||
"description": "The lifetime of images that are stored on the server. After this time, the image will be deleted."
|
||||
"description": "The lifetime of images that are stored on the server in hours. After this time, the image will be deleted.",
|
||||
"unit_one": "hour",
|
||||
"unit_other": "hours"
|
||||
},
|
||||
"enableImageProxy": {
|
||||
"label": "Enable image proxy",
|
||||
|
@ -355,6 +355,18 @@ export default function SettingsForm({settings, queryKey}: SettingsFormProps) {
|
||||
<BsImage />
|
||||
</InputAdornment>
|
||||
),
|
||||
endAdornment: (
|
||||
<InputAdornment position="end">
|
||||
{t(
|
||||
"routes.AdminRoute.forms.settings.imageProxyStorageLifeTimeInHours.unit",
|
||||
{
|
||||
count:
|
||||
formik.values
|
||||
.imageProxyStorageLifeTimeInHours || 0,
|
||||
},
|
||||
)}
|
||||
</InputAdornment>
|
||||
),
|
||||
}}
|
||||
/>
|
||||
</Grid>
|
||||
|
Loading…
x
Reference in New Issue
Block a user