mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
add longer expirity for share link (#8617)
* add longer expirity for share link * add longer expirity for web UI, add months and year option, add translation * dart format --------- Co-authored-by: NAGY Akos (external) <akos.nagy@frequentis.com> Co-authored-by: Alex <alex.tran1502@gmail.com>
This commit is contained in:
parent
2a26574808
commit
b1bcd67f5a
3 changed files with 18 additions and 1 deletions
|
|
@ -37,7 +37,7 @@
|
|||
|
||||
const expiredDateOption: ImmichDropDownOption = {
|
||||
default: 'Never',
|
||||
options: ['Never', '30 minutes', '1 hour', '6 hours', '1 day', '7 days', '30 days'],
|
||||
options: ['Never', '30 minutes', '1 hour', '6 hours', '1 day', '7 days', '30 days', '3 months', '1 year'],
|
||||
};
|
||||
|
||||
$: shareType = albumId ? SharedLinkType.Album : SharedLinkType.Individual;
|
||||
|
|
@ -105,6 +105,12 @@
|
|||
case '30 days': {
|
||||
return 30 * 24 * 60 * 60 * 1000;
|
||||
}
|
||||
case '3 months': {
|
||||
return 30 * 24 * 60 * 60 * 3 * 1000;
|
||||
}
|
||||
case '1 year': {
|
||||
return 30 * 24 * 60 * 60 * 12 * 1000;
|
||||
}
|
||||
default: {
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue