feat(web): add shortcut to remove assets from an album (#32015)
feat(web): add shortcut to remove assets from an album (#31940) (cherry picked from commit 75edc2de9484950999cac22109e3849d10f63e15) Co-authored-by: Andreas Heinz <github@a80.net>
This commit is contained in:
co-authored by
Andreas Heinz
parent
fcc5400e36
commit
3866cc91e8
@@ -39,6 +39,7 @@
|
||||
{ key: ['i'], action: $t('show_or_hide_info') },
|
||||
{ key: ['s'], action: $t('stack_selected_photos') },
|
||||
{ key: ['l'], action: $t('add_to_album') },
|
||||
{ key: ['⇧', 'l'], action: $t('remove_from_album') },
|
||||
{ key: ['t'], action: $t('tag_assets') },
|
||||
{ key: ['p'], action: $t('tag_people') },
|
||||
{ key: ['⇧', 'a'], action: $t('archive_or_unarchive_photo') },
|
||||
|
||||
@@ -86,6 +86,7 @@ export const getAssetBulkActions = ($t: MessageFormatter, album?: AlbumResponseD
|
||||
const RemoveFromAlbum: ActionItem = {
|
||||
title: $t('remove_from_album'),
|
||||
icon: mdiImageRemoveOutline,
|
||||
shortcuts: [{ key: 'l', shift: true }],
|
||||
$if: () => !!album && (isAlbumOwner || assetMultiSelectManager.isAllUserOwned),
|
||||
onAction: () => handleBulkRemoveAssetsFromAlbum(assetIds, album!),
|
||||
};
|
||||
@@ -237,6 +238,7 @@ export const getAssetActions = (
|
||||
const RemoveFromAlbum: ActionItem = {
|
||||
title: $t('remove_from_album'),
|
||||
icon: mdiImageRemoveOutline,
|
||||
shortcuts: [{ key: 'l', shift: true }],
|
||||
$if: () => !!album && (isOwner || isAlbumOwner),
|
||||
onAction: () => handleRemoveAssetsFromAlbum([asset.id], album!),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user