[PR #4679] [MERGED] fix(mobile): handle shared assets actions in viewer #10474

Closed
opened 2026-02-05 14:22:36 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/immich-app/immich/pull/4679
Author: @shenlong-tanwen
Created: 10/28/2023
Status: Merged
Merged: 10/28/2023
Merged by: @alextran1502

Base: mainHead: fix/mobile-share-actions


📝 Commits (1)

  • 98db176 fix(mobile): handle shared assets in viewer

📊 Changes

7 files changed (+60 additions, -24 deletions)

View changed files

📝 mobile/lib/modules/album/views/album_viewer_page.dart (+1 -0)
📝 mobile/lib/modules/asset_viewer/ui/top_control_app_bar.dart (+5 -3)
📝 mobile/lib/modules/asset_viewer/views/gallery_viewer.dart (+38 -20)
📝 mobile/lib/modules/home/ui/asset_grid/immich_asset_grid.dart (+3 -0)
📝 mobile/lib/modules/home/ui/asset_grid/immich_asset_grid_view.dart (+3 -0)
📝 mobile/lib/modules/home/ui/asset_grid/thumbnail_image.dart (+3 -0)
📝 mobile/lib/routing/router.gr.dart (+7 -1)

📄 Description

Fixes #4670.

Changes made in the PR

  • Uses the owner state to determine the buttons visible in the gallery_viewer bottom bar to hide non-owner related actions such as archive, delete, etc.
  • The top app bar in gallery viewer is also updated to hide actions such as add to album from non-owners

Screenshots

Before After
Before After

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/immich-app/immich/pull/4679 **Author:** [@shenlong-tanwen](https://github.com/shenlong-tanwen) **Created:** 10/28/2023 **Status:** ✅ Merged **Merged:** 10/28/2023 **Merged by:** [@alextran1502](https://github.com/alextran1502) **Base:** `main` ← **Head:** `fix/mobile-share-actions` --- ### 📝 Commits (1) - [`98db176`](https://github.com/immich-app/immich/commit/98db176ce7e1c1a0bd3e309c9c46d93064a6d42b) fix(mobile): handle shared assets in viewer ### 📊 Changes **7 files changed** (+60 additions, -24 deletions) <details> <summary>View changed files</summary> 📝 `mobile/lib/modules/album/views/album_viewer_page.dart` (+1 -0) 📝 `mobile/lib/modules/asset_viewer/ui/top_control_app_bar.dart` (+5 -3) 📝 `mobile/lib/modules/asset_viewer/views/gallery_viewer.dart` (+38 -20) 📝 `mobile/lib/modules/home/ui/asset_grid/immich_asset_grid.dart` (+3 -0) 📝 `mobile/lib/modules/home/ui/asset_grid/immich_asset_grid_view.dart` (+3 -0) 📝 `mobile/lib/modules/home/ui/asset_grid/thumbnail_image.dart` (+3 -0) 📝 `mobile/lib/routing/router.gr.dart` (+7 -1) </details> ### 📄 Description Fixes #4670. #### Changes made in the PR - Uses the owner state to determine the buttons visible in the `gallery_viewer` bottom bar to hide non-owner related actions such as archive, delete, etc. - The top app bar in gallery viewer is also updated to hide actions such as add to album from non-owners #### Screenshots Before | After :-: | :-: ![Before](https://github.com/immich-app/immich/assets/139912620/c1c7394e-e3a1-474d-aca3-fdbb7d1fdaf9) | ![After](https://github.com/immich-app/immich/assets/139912620/3efc95ac-f3e8-42ef-bc51-2ed0ab5e3aa6) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-05 14:22:36 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#10474