mirror of
https://github.com/immich-app/immich.git
synced 2026-02-11 11:27:56 +03: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:
@@ -439,6 +439,8 @@
|
||||
"shared_link_edit_expire_after_option_hours": "{} hours",
|
||||
"shared_link_edit_expire_after_option_minute": "1 minute",
|
||||
"shared_link_edit_expire_after_option_minutes": "{} minutes",
|
||||
"shared_link_edit_expire_after_option_months": "{} months",
|
||||
"shared_link_edit_expire_after_option_year": "{} year",
|
||||
"shared_link_edit_expire_after_option_never": "Never",
|
||||
"shared_link_edit_password": "Password",
|
||||
"shared_link_edit_password_hint": "Enter the share password",
|
||||
|
||||
@@ -271,6 +271,15 @@ class SharedLinkEditPage extends HookConsumerWidget {
|
||||
value: 60 * 24 * 30,
|
||||
label: "shared_link_edit_expire_after_option_days".tr(args: ["30"]),
|
||||
),
|
||||
DropdownMenuEntry(
|
||||
value: 60 * 24 * 30 * 3,
|
||||
label:
|
||||
"shared_link_edit_expire_after_option_months".tr(args: ["3"]),
|
||||
),
|
||||
DropdownMenuEntry(
|
||||
value: 60 * 24 * 30 * 12,
|
||||
label: "shared_link_edit_expire_after_option_year".tr(args: ["1"]),
|
||||
),
|
||||
],
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user