forked from Cutlery/immich
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 () => {
|
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…
x
Reference in New Issue
Block a user