mirror of
https://github.com/immich-app/immich.git
synced 2025-01-07 00:50:23 -05: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
1 changed files with 6 additions and 4 deletions
|
@ -87,10 +87,12 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
const onStackAssets = async () => {
|
const onStackAssets = async () => {
|
||||||
await stackAssets(Array.from($selectedAssets), (ids) => {
|
if ($selectedAssets.size > 1) {
|
||||||
assetStore.removeAssets(ids);
|
await stackAssets(Array.from($selectedAssets), (ids) => {
|
||||||
dispatch('escape');
|
assetStore.removeAssets(ids);
|
||||||
});
|
dispatch('escape');
|
||||||
|
});
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
$: shortcutList = (() => {
|
$: shortcutList = (() => {
|
||||||
|
|
Loading…
Reference in a new issue