kcli: queue-summary: fix displaying suspension status

When rendering the suspension and bounce status, the various
queue name component parameters were flipped wrt. to the
suspension and bounce entries, causing them not to match.

This commit fixes that and restores stop sign and trash can
emoji status annotations to the output.
This commit is contained in:
Wez Furlong
2024-09-13 08:52:54 -07:00
parent 9c05e5e681
commit ed92367ea9
+3 -3
View File
@@ -432,13 +432,13 @@ fn domain_matches(
tenant: &Option<String>,
domain: &Option<String>,
) -> bool {
if !match_criteria(campaign.as_deref(), components.campaign.as_deref()) {
if !match_criteria(components.campaign.as_deref(), campaign.as_deref()) {
return false;
}
if !match_criteria(tenant.as_deref(), components.tenant.as_deref()) {
if !match_criteria(components.tenant.as_deref(), tenant.as_deref()) {
return false;
}
if !match_criteria(domain.as_deref(), Some(components.domain)) {
if !match_criteria(Some(components.domain), domain.as_deref()) {
return false;
}
true