Skip to content

Commit

Permalink
Merge pull request #168 from ymaheshwari1/#166
Browse files Browse the repository at this point in the history
Improved: UI for the routing history to display message when no history is present and added lines full to have separation between the history modal title and its details(#166)
  • Loading branch information
ymaheshwari1 authored Apr 8, 2024
2 parents a97cc8c + ac06db4 commit e3c8c75
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/RoutingHistoryModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<ion-content>
<ion-list>
<ion-item>
<ion-item lines="full">
<ion-label>
<h1>{{ routingName }}</h1>
<p>{{ groupName }}</p>
Expand Down
1 change: 1 addition & 0 deletions src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
"No available history for this group": "No available history for this group",
"No available history for this route": "No available history for this route",
"No archived routings": "No archived routings",
"No run history": "No run history",
"No runs scheduled": "No runs scheduled",
"No time zone found": "No time zone found",
"OMS": "OMS",
Expand Down
2 changes: 1 addition & 1 deletion src/views/BrokeringRoute.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<ion-icon :icon="timeOutline" slot="start" />
<ion-label>{{ translate("Last run") }}</ion-label>
<ion-chip outline @click.stop="openRoutingHistoryModal(routing.orderRoutingId, routing.routingName)">
<ion-label>{{ routingHistory[routing.orderRoutingId] ? getDateAndTimeShort(routingHistory[routing.orderRoutingId][0].startDate) : "-" }}</ion-label>
<ion-label>{{ routingHistory[routing.orderRoutingId] ? getDateAndTimeShort(routingHistory[routing.orderRoutingId][0].startDate) : translate("No run history") }}</ion-label>
</ion-chip>
</ion-item>
<ion-item lines="none">
Expand Down

0 comments on commit e3c8c75

Please sign in to comment.