mirror of
https://git.meli.delivery/meli/meli
synced 2024-11-19 03:25:38 +00:00
mail/listing: show mailbox loading state in status
This commit is contained in:
parent
7efbe6d692
commit
f8a47586e9
@ -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…
Reference in New Issue
Block a user