Skip to content

Commit

Permalink
Improved: UI for the routing history to display message when no histo…
Browse files Browse the repository at this point in the history
…ry is present and added lines full to have separation between the history modal title and its details(#166)
  • Loading branch information
ymaheshwari1 committed Apr 6, 2024
1 parent a97cc8c commit ac06db4
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 ac06db4

Please sign in to comment.