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
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);