1
0
mirror of https://github.com/axllent/mailpit.git synced 2024-12-30 23:17:59 +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) {
if (selecting) {
this.selected.push(d.ID);
if (!this.isSelected(d.ID)) {
this.selected.push(d.ID);
}
if (d.ID == lastSelected || d.ID == id) {
// reached backwards select
break;
}
} 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;
}
}