mail/listing: show mailbox loading state in status
parent
7efbe6d692
commit
f8a47586e9
|
@ -1509,10 +1509,15 @@ impl Component for Listing {
|
||||||
.ok()
|
.ok()
|
||||||
.unwrap_or((0, 0));
|
.unwrap_or((0, 0));
|
||||||
format!(
|
format!(
|
||||||
"Mailbox: {}, Messages: {}, New: {}",
|
"Mailbox: {}, Messages: {}, New: {}{}",
|
||||||
account[&mailbox_hash].name(),
|
account[&mailbox_hash].name(),
|
||||||
total,
|
total,
|
||||||
unseen
|
unseen,
|
||||||
|
if account[&mailbox_hash].status.is_parsing() {
|
||||||
|
"(Loading...)"
|
||||||
|
} else {
|
||||||
|
""
|
||||||
|
}
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
MailboxStatus::Failed(_) | MailboxStatus::None => account[&mailbox_hash].status(),
|
MailboxStatus::Failed(_) | MailboxStatus::None => account[&mailbox_hash].status(),
|
||||||
|
|
Loading…
Reference in New Issue