Skip to content

Commit

Permalink
Improved: changed due date labels & updated the locale file(#531)
Browse files Browse the repository at this point in the history
  • Loading branch information
R-Sourabh committed Dec 16, 2024
1 parent ec3f98d commit 411997c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/components/Filters.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
<ion-item lines="none">
<ion-icon slot="start" :icon="swapVerticalOutline" />
<ion-select :label="translate('Sort by')" :value="query.sortBy" @ionChange="updateQuery('sortBy', $event.detail.value)" interface="popover">
<ion-select-option value="dueDate desc">{{ translate("Due date - Newest to oldest") }}</ion-select-option>
<ion-select-option value="dueDate asc">{{ translate("Due date - Oldest to newest") }}</ion-select-option>
<ion-select-option value="dueDate desc">{{ translate("Due date - Farthest to nearest") }}</ion-select-option>
<ion-select-option value="dueDate asc">{{ translate("Due date - Nearest to farthest") }}</ion-select-option>
<ion-select-option value="countImportName asc">{{ translate("Name - A to Z") }}</ion-select-option>
<ion-select-option value="countImportName desc">{{ translate("Name - Z to A") }}</ion-select-option>
</ion-select>
Expand Down
4 changes: 2 additions & 2 deletions src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@
"Current on hand": "Current on hand",
"Defaults to 'Draft'": "Defaults to 'Draft'",
"Due date": "Due date",
"Due date - Newest to oldest": "Due date - Newest to oldest",
"Due date - Oldest to newest": "Due date - Oldest to newest",
"Due date - Farthest to nearest": "Due date - Farthest to nearest",
"Due date - Nearest to farthest": "Due date - Nearest to farthest",
"Date": "Date",
"Discard": "Discard",
"Discard re-count": "Discard re-count",
Expand Down
2 changes: 1 addition & 1 deletion src/store/modules/count/mutations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const mutations: MutationTree <CountState> = {
facilityIds: [],
noFacility: false,
queryString: '',
sortBy: ''
sortBy: 'dueDate desc'
}
},
[types.COUNT_STATS_UPDATED](state, payload) {
Expand Down

0 comments on commit 411997c

Please sign in to comment.