From 5c602bf4d4880c9f748fcb00a72056610f15283e Mon Sep 17 00:00:00 2001 From: shenlong <139912620+shenlong-tanwen@users.noreply.github.com> Date: Thu, 9 Nov 2023 14:36:57 +0000 Subject: [PATCH] fix(mobile): add label for expire after in shared link edit page (#4920) Co-authored-by: shalong-tanwen <139912620+shalong-tanwen@users.noreply.github.com> --- mobile/assets/i18n/en-US.json | 1 + .../modules/shared_link/views/shared_link_edit_page.dart | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/mobile/assets/i18n/en-US.json b/mobile/assets/i18n/en-US.json index 04eb7dd6ef..ccb4195c32 100644 --- a/mobile/assets/i18n/en-US.json +++ b/mobile/assets/i18n/en-US.json @@ -316,6 +316,7 @@ "shared_link_edit_description": "Description", "shared_link_edit_description_hint": "Enter the share description", "shared_link_edit_password": "Password", + "shared_link_edit_expire_after": "Expire after", "shared_link_edit_password_hint": "Enter the share password", "shared_link_edit_show_meta": "Show metadata", "shared_link_edit_submit_button": "Update link", diff --git a/mobile/lib/modules/shared_link/views/shared_link_edit_page.dart b/mobile/lib/modules/shared_link/views/shared_link_edit_page.dart index 499b2c29d3..27178917ab 100644 --- a/mobile/lib/modules/shared_link/views/shared_link_edit_page.dart +++ b/mobile/lib/modules/shared_link/views/shared_link_edit_page.dart @@ -206,6 +206,13 @@ class SharedLinkEditPage extends HookConsumerWidget { Widget buildExpiryAfterButton() { return DropdownMenu( + label: Text( + "shared_link_edit_expire_after", + style: TextStyle( + fontWeight: FontWeight.bold, + color: themeData.primaryColor, + ), + ).tr(), enableSearch: false, enableFilter: false, width: MediaQuery.of(context).size.width - 40,