Browse Source

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>
shenlong 1 year ago
parent
commit
5c602bf4d4

+ 1 - 0
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",

+ 7 - 0
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,