feat(web): improve feedback for favorite and archive actions (#7232)

This commit is contained in:
Michel Heusschen 2024-02-20 17:01:52 +01:00 committed by GitHub
parent b3c7bebbd4
commit b896d45ee7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 24 additions and 12 deletions

View file

@ -416,6 +416,10 @@ export class AssetStore {
return nextBucket.assets[0]?.id || null;
}
triggerUpdate() {
this.emit(false);
}
private emit(recalculate: boolean) {
if (recalculate) {
this.assets = this.buckets.flatMap(({ assets }) => assets);