Skip to content

Commit 3e92e83

Browse files
bweesalextran1502
andauthored
feat(mobile): create shared link for albums (#20652)
* feat(mobile): create shared link for albums * translation --------- Co-authored-by: Alex <[email protected]>
1 parent 081307c commit 3e92e83

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

i18n/en.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -724,6 +724,7 @@
724724
"create_new_user": "Create new user",
725725
"create_shared_album_page_share_add_assets": "ADD ASSETS",
726726
"create_shared_album_page_share_select_photos": "Select Photos",
727+
"create_shared_link": "Create shared link",
727728
"create_tag": "Create tag",
728729
"create_tag_description": "Create a new tag. For nested tags, please enter the full path of the tag including forward slashes.",
729730
"create_user": "Create user",

mobile/lib/presentation/pages/drift_remote_album.page.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,10 @@ class _RemoteAlbumPageState extends ConsumerState<RemoteAlbumPage> {
200200
context.pop();
201201
await showEditTitleAndDescription(context);
202202
},
203+
onCreateSharedLink: () async {
204+
context.pop();
205+
context.pushRoute(SharedLinkEditRoute(albumId: _album.id));
206+
},
203207
);
204208
},
205209
);

0 commit comments

Comments
 (0)