mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-07-22 22:39:36 +02:00
fix: clear album selection when switching search categories in ImmichSelect
This commit is contained in:
parent
d0c1ecd394
commit
2f7103f5f3
1 changed files with 11 additions and 1 deletions
|
@ -31,11 +31,21 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
$: {
|
$: {
|
||||||
if (currentAlbum) {
|
if (searchCategory === 'album' && currentAlbum) {
|
||||||
immichImages = [];
|
immichImages = [];
|
||||||
fetchAlbumAssets(currentAlbum);
|
fetchAlbumAssets(currentAlbum);
|
||||||
} else if (searchCategory === 'date' && selectedDate) {
|
} else if (searchCategory === 'date' && selectedDate) {
|
||||||
|
// Clear album selection when switching to date mode
|
||||||
|
if (currentAlbum) {
|
||||||
|
currentAlbum = '';
|
||||||
|
}
|
||||||
searchImmich();
|
searchImmich();
|
||||||
|
} else if (searchCategory === 'search') {
|
||||||
|
// Clear album selection when switching to search mode
|
||||||
|
if (currentAlbum) {
|
||||||
|
currentAlbum = '';
|
||||||
|
}
|
||||||
|
// Search will be triggered by the form submission or debounced search
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue