mirror of
https://github.com/immich-app/immich.git
synced 2024-11-28 09:33:27 +02:00
fix(web): bypass the onStackAssets shortcut when only one is selected (#8559)
Selecting one asset and pressing 's' would show 'Stacked 1 assets' and result in a noop. This change prevents the notification and exiting the select mode.
This commit is contained in:
parent
8f981b6052
commit
a2e38270e4
@ -87,10 +87,12 @@
|
||||
};
|
||||
|
||||
const onStackAssets = async () => {
|
||||
await stackAssets(Array.from($selectedAssets), (ids) => {
|
||||
assetStore.removeAssets(ids);
|
||||
dispatch('escape');
|
||||
});
|
||||
if ($selectedAssets.size > 1) {
|
||||
await stackAssets(Array.from($selectedAssets), (ids) => {
|
||||
assetStore.removeAssets(ids);
|
||||
dispatch('escape');
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
$: shortcutList = (() => {
|
||||
|
Loading…
Reference in New Issue
Block a user