1
0
mirror of https://github.com/axllent/mailpit.git synced 2025-01-04 00:15:54 +02:00

Fix count of selected messages

This commit is contained in:
Ralph Slooten 2022-09-16 21:54:25 +12:00
parent 5d6aa7c48a
commit 2bc2660ad5

View File

@ -433,13 +433,17 @@ export default {
for (let d of this.items) { for (let d of this.items) {
if (selecting) { if (selecting) {
this.selected.push(d.ID); if (!this.isSelected(d.ID)) {
this.selected.push(d.ID);
}
if (d.ID == lastSelected || d.ID == id) { if (d.ID == lastSelected || d.ID == id) {
// reached backwards select // reached backwards select
break; break;
} }
} else if (d.ID == id || d.ID == lastSelected) { } else if (d.ID == id || d.ID == lastSelected) {
this.selected.push(d.ID); if (!this.isSelected(d.ID)) {
this.selected.push(d.ID);
}
selecting = true; selecting = true;
} }
} }