mirror of
https://github.com/immich-app/immich
synced 2026-08-15 13:03:57 +00:00
Merge 76098c36d7 into ffc83eae36
This commit is contained in:
commit
53546f0d49
31 changed files with 2043 additions and 99 deletions
|
|
@ -109,7 +109,7 @@ enum ActionButtonType {
|
|||
context.isOwner && //
|
||||
!context.isInLockedView && //
|
||||
context.asset.hasRemote && //
|
||||
context.timelineOrigin == TimelineOrigin.trash,
|
||||
context.asset.isEffectivelyTrashed(context.timelineOrigin),
|
||||
ActionButtonType.delete => true,
|
||||
ActionButtonType.moveToLockFolder =>
|
||||
context.isOwner && //
|
||||
|
|
@ -135,12 +135,13 @@ enum ActionButtonType {
|
|||
context.selectedCount == 1,
|
||||
ActionButtonType.unstack =>
|
||||
context.isOwner && //
|
||||
context.timelineOrigin != TimelineOrigin.trash &&
|
||||
!context.asset.isEffectivelyTrashed(context.timelineOrigin) &&
|
||||
!context.isInLockedView && //
|
||||
context.isStacked,
|
||||
ActionButtonType.openInBrowser => context.asset.hasRemote && !context.isInLockedView,
|
||||
ActionButtonType.likeActivity =>
|
||||
!context.isInLockedView &&
|
||||
context.timelineOrigin != TimelineOrigin.deepLink &&
|
||||
context.currentAlbum != null &&
|
||||
context.currentAlbum!.isActivityEnabled &&
|
||||
context.currentAlbum!.isShared,
|
||||
|
|
@ -154,8 +155,8 @@ enum ActionButtonType {
|
|||
ActionButtonType.openInfo => true,
|
||||
ActionButtonType.viewInTimeline =>
|
||||
context.timelineOrigin != TimelineOrigin.main &&
|
||||
!context.asset.isEffectivelyTrashed(context.timelineOrigin) &&
|
||||
context.timelineOrigin != TimelineOrigin.deepLink &&
|
||||
context.timelineOrigin != TimelineOrigin.trash &&
|
||||
context.timelineOrigin != TimelineOrigin.lockedFolder &&
|
||||
context.timelineOrigin != TimelineOrigin.archive &&
|
||||
context.timelineOrigin != TimelineOrigin.localAlbum &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue