Browse Source

mail/listing: show mailbox loading state in status

jmap-eventsource
Manos Pitsidianakis 1 year ago
parent
commit
f8a47586e9
Signed by: epilys GPG Key ID: 73627C2F690DF710
  1. 9
      src/components/mail/listing.rs

9
src/components/mail/listing.rs

@ -1509,10 +1509,15 @@ impl Component for Listing {
.ok()
.unwrap_or((0, 0));
format!(
"Mailbox: {}, Messages: {}, New: {}",
"Mailbox: {}, Messages: {}, New: {}{}",
account[&mailbox_hash].name(),
total,
unseen
unseen,
if account[&mailbox_hash].status.is_parsing() {
"(Loading...)"
} else {
""
}
)
}
MailboxStatus::Failed(_) | MailboxStatus::None => account[&mailbox_hash].status(),

Loading…
Cancel
Save