File tree Expand file tree Collapse file tree 1 file changed +16
-15
lines changed
web/src/lib/components/photos-page Expand file tree Collapse file tree 1 file changed +16
-15
lines changed Original file line number Diff line number Diff line change 564
564
return ;
565
565
}
566
566
567
- // Select/deselect assets in range (start,end]
567
+ // Select/deselect assets in range (start,end)
568
568
let started = false ;
569
569
for (const bucket of assetStore .buckets ) {
570
- if (bucket === startBucket ) {
571
- started = true ;
572
- }
573
570
if (bucket === endBucket ) {
574
571
break ;
575
572
}
583
580
}
584
581
}
585
582
}
583
+ if (bucket === startBucket ) {
584
+ started = true ;
585
+ }
586
586
}
587
587
588
- // Update date group selection
588
+ // Update date group selection in range [start,end]
589
589
started = false ;
590
590
for (const bucket of assetStore .buckets ) {
591
591
if (bucket === startBucket ) {
592
592
started = true ;
593
593
}
594
+ if (started ) {
595
+ // Split bucket into date groups and check each group
596
+ for (const dateGroup of bucket .dateGroups ) {
597
+ const dateGroupTitle = dateGroup .groupTitle ;
598
+ if (dateGroup .getAssets ().every ((a ) => assetInteraction .hasSelectedAsset (a .id ))) {
599
+ assetInteraction .addGroupToMultiselectGroup (dateGroupTitle );
600
+ } else {
601
+ assetInteraction .removeGroupFromMultiselectGroup (dateGroupTitle );
602
+ }
603
+ }
604
+ }
594
605
if (bucket === endBucket ) {
595
606
break ;
596
607
}
597
-
598
- // Split bucket into date groups and check each group
599
- for (const dateGroup of bucket .dateGroups ) {
600
- const dateGroupTitle = dateGroup .groupTitle ;
601
- if (dateGroup .getAssets ().every ((a ) => assetInteraction .hasSelectedAsset (a .id ))) {
602
- assetInteraction .addGroupToMultiselectGroup (dateGroupTitle );
603
- } else {
604
- assetInteraction .removeGroupFromMultiselectGroup (dateGroupTitle );
605
- }
606
- }
607
608
}
608
609
}
609
610
You can’t perform that action at this time.
0 commit comments