From 76b919d0a5cd54b420913e05be0602af03f49c6e Mon Sep 17 00:00:00 2001 From: Ravi Lodhi Date: Tue, 26 Nov 2024 12:53:04 +0530 Subject: [PATCH] Improved: Added support to refresh the related jobs. Also added checks to not allow any actions on the outdated job. (#288) --- src/i18n/locales/en.json | 2 ++ src/views/audit-product-details.vue | 20 +++++++++++++++----- src/views/job-actions-popover.vue | 15 +++++++++++++++ 3 files changed, 32 insertions(+), 5 deletions(-) diff --git a/src/i18n/locales/en.json b/src/i18n/locales/en.json index 0f4809ce..4f88667a 100644 --- a/src/i18n/locales/en.json +++ b/src/i18n/locales/en.json @@ -86,6 +86,7 @@ "Items queued for cancel successfully": "Items queued for cancel successfully", "Items queued for release successfully": "Items queued for release successfully", "Items queued to update promise date successfully": "Items queued to update promise date successfully", + "Job runtime has passed. Please refresh to get the latest job data in order to perform any action.": "Job runtime has passed. Please refresh to get the latest job data in order to perform any action.", "Jobs": "Jobs", "Last active purchase order": "Last active purchase order", "Listed": "Listed", @@ -216,6 +217,7 @@ "Stopped accepting from as there is no active PO": "Stopped accepting {category}s from {changeDatetime} as there is no active PO", "The job is currently in progress. Are you sure that you want to cancel this job?": "The job is currently in progress. Are you sure that you want to cancel this job?", "Store": "Store", + "The job data has been refreshed successfully.": "The job data has been refreshed successfully.", "The order count in product cards will be updated based on the filters you select.": "The order count in product cards will be updated based on the filters you select.", "The timezone you select is used to ensure automations you schedule are always accurate to the time you select.": "The timezone you select is used to ensure automations you schedule are always accurate to the time you select.", "There are no jobs running in the background right now.": "There are no jobs running in the background right now.", diff --git a/src/views/audit-product-details.vue b/src/views/audit-product-details.vue index 4a02c230..12f9ef1a 100644 --- a/src/views/audit-product-details.vue +++ b/src/views/audit-product-details.vue @@ -268,11 +268,12 @@
- - -

{{ $t('Related jobs') }}

-
-
+ +

{{ $t('Related jobs') }}

+ + + +
@@ -364,6 +365,7 @@