Skip to content

Commit

Permalink
Improved: empty state message for inventory rule details, added a che…
Browse files Browse the repository at this point in the history
…ck for empty-state and added static text in en.json(#142)
  • Loading branch information
ymaheshwari1 committed Apr 10, 2024
1 parent 31c0db8 commit 4a86a42
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
"Cloning route": "Cloning route",
"Close": "Close",
"Connection configuration is missing for oms.": "Connection configuration is missing for oms.",
"Create brokering run": "Create brokering run",
"Create order batch": "Create order batch",
"Create order batches for this Brokering Run to execute.": "Create order batches for this Brokering Run to execute.",
"Created at": "Created at",
"Description": "Description",
"Discard": "Discard",
Expand All @@ -41,7 +44,6 @@
"Failed to create brokering run": "Failed to create brokering run",
"Failed to create inventory rule": "Failed to create inventory rule",
"Failed to create order routing": "Failed to create order routing",
"Failed to identify selected inventory rule, please select a rule or refresh": "Failed to identify selected inventory rule, please select a rule or refresh",
"Failed to update group information": "Failed to update group information",
"Failed to schedule service": "Failed to schedule service",
"Fetching filters and inventory rules": "Fetching filters and inventory rules",
Expand Down Expand Up @@ -95,6 +97,7 @@
"Passed duration": "Passed duration",
"Password": "Password",
"Please enter a valid name": "Please enter a valid name",
"Please select a rule or refresh": "Please select a rule or refresh",
"Please select a scheduling for job": "Please select a scheduling for job",
"Product Store": "Product Store",
"Promise date": "Promise date",
Expand Down
2 changes: 1 addition & 1 deletion src/views/BrokeringQuery.vue
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@
</div>
</section>
</div>
<div class="empty-state" v-else>{{ translate("Failed to identify selected inventory rule, please select a rule or refresh") }}</div>
<div class="empty-state" v-else>{{ translate("Please select a rule or refresh") }}</div>
</section>
<section v-else class="empty-state">
<img src="../assets/images/InventoryRuleEmptyState.png" />
Expand Down
2 changes: 1 addition & 1 deletion src/views/BrokeringRoute.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
</ion-card>
</ion-reorder-group>
</ion-list>
<div class="empty-state">
<div v-else class="empty-state">
<p>{{ translate("Create order batches for this Brokering Run to execute.") }}</p>
<ion-button @click="createOrderRoute">
<ion-icon slot="start" :icon="addOutline"></ion-icon>
Expand Down

0 comments on commit 4a86a42

Please sign in to comment.