Skip to content

Commit

Permalink
Improved: condition to handle the case for archived routing as well(#117
Browse files Browse the repository at this point in the history
)
  • Loading branch information
ymaheshwari1 committed Feb 19, 2024
1 parent 2a4f186 commit a39730d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/BrokeringQuery.vue
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
<ion-item lines="full" v-for="rule in inventoryRules" :key="rule.routingRuleId && inventoryRules.length" :color="rule.routingRuleId === selectedRoutingRule?.routingRuleId ? 'light' : ''" @click="fetchRuleInformation(rule.routingRuleId)" button>
<ion-label>
<h2>{{ rule.ruleName }}</h2>
<ion-note :color="rule.statusId === 'RULE_ACTIVE' ? 'success' : ''">{{ rule.statusId === "RULE_ACTIVE" ? translate("Active") : translate("Inactive") }}</ion-note>
<ion-note :color="rule.statusId === 'RULE_ACTIVE' ? 'success' : rule.statusId === 'RULE_ARCHIVED' ? 'warning' : ''">{{ rule.statusId === "RULE_ACTIVE" ? translate("Active") : rule.statusId === "RULE_ARCHIVED" ? translate("Archived") : translate("Draft") }}</ion-note>
</ion-label>
<!-- Don't display reordering option when there is a single rule -->
<ion-reorder v-show="inventoryRules.length > 1" />
Expand Down

0 comments on commit a39730d

Please sign in to comment.