From 411997c9bffc4d1947c13fa9d3fa7d5992d1de74 Mon Sep 17 00:00:00 2001 From: R-Sourabh Date: Mon, 16 Dec 2024 18:34:54 +0530 Subject: [PATCH] Improved: changed due date labels & updated the locale file(#531) --- src/components/Filters.vue | 4 ++-- src/locales/en.json | 4 ++-- src/store/modules/count/mutations.ts | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/Filters.vue b/src/components/Filters.vue index 103c6e1e..21714e7a 100644 --- a/src/components/Filters.vue +++ b/src/components/Filters.vue @@ -25,8 +25,8 @@ - {{ translate("Due date - Newest to oldest") }} - {{ translate("Due date - Oldest to newest") }} + {{ translate("Due date - Farthest to nearest") }} + {{ translate("Due date - Nearest to farthest") }} {{ translate("Name - A to Z") }} {{ translate("Name - Z to A") }} diff --git a/src/locales/en.json b/src/locales/en.json index 54c9349d..5fd2b662 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -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", diff --git a/src/store/modules/count/mutations.ts b/src/store/modules/count/mutations.ts index f4600ab7..1f49894c 100644 --- a/src/store/modules/count/mutations.ts +++ b/src/store/modules/count/mutations.ts @@ -16,7 +16,7 @@ const mutations: MutationTree = { facilityIds: [], noFacility: false, queryString: '', - sortBy: '' + sortBy: 'dueDate desc' } }, [types.COUNT_STATS_UPDATED](state, payload) {