Skip to content

Commit

Permalink
Merge pull request #785 from amansinghbais/#737
Browse files Browse the repository at this point in the history
Improved: closing job details of maarg jobs on product store change #737)
  • Loading branch information
ymaheshwari1 authored Feb 28, 2025
2 parents 753ac73 + d2fce39 commit c1e304b
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/views/Fulfillment.vue
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ export default defineComponent({
if(isCurrentJobUpdateRequired) {
this.currentJob = "";
await this.store.dispatch('job/updateCurrentJob', { });
await this.store.dispatch("maargJob/clearCurrentMaargJob")
this.currentJobStatus = "";
this.freqType = "";
this.isJobDetailAnimationCompleted = false;
Expand Down
1 change: 1 addition & 0 deletions src/views/InitialLoad.vue
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ export default defineComponent({
if(isCurrentJobUpdateRequired) {
this.currentSelectedJobModal = "";
await this.store.dispatch('job/updateCurrentJob', { });
await this.store.dispatch("maargJob/clearCurrentMaargJob")
this.job = {};
this.lastShopifyOrderId = "";
this.isJobDetailAnimationCompleted = false;
Expand Down
1 change: 1 addition & 0 deletions src/views/Inventory.vue
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ export default defineComponent({
if(isCurrentJobUpdateRequired) {
this.currentJob = "";
await this.store.dispatch('job/updateCurrentJob', { });
await this.store.dispatch("maargJob/clearCurrentMaargJob")
this.currentJobStatus = "";
this.freqType = "";
this.isJobDetailAnimationCompleted = false;
Expand Down
1 change: 1 addition & 0 deletions src/views/Miscellaneous.vue
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ export default defineComponent({
if(isCurrentJobUpdateRequired) {
this.currentJob = "";
await this.store.dispatch('job/updateCurrentJob', { });
await this.store.dispatch("maargJob/clearCurrentMaargJob")
this.currentJobStatus = "";
this.isJobDetailAnimationCompleted = false;
}
Expand Down
1 change: 1 addition & 0 deletions src/views/Orders.vue
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ export default defineComponent({
if(isCurrentJobUpdateRequired) {
this.currentJob = ""
await this.store.dispatch('job/updateCurrentJob', { });
await this.store.dispatch("maargJob/clearCurrentMaargJob")
this.currentJobStatus = ""
this.freqType = ""
this.isJobDetailAnimationCompleted = false
Expand Down
1 change: 1 addition & 0 deletions src/views/Pipeline.vue
Original file line number Diff line number Diff line change
Expand Up @@ -682,6 +682,7 @@ export default defineComponent({
if(isCurrentJobUpdateRequired) {
this.jobsLoading = true;
await this.store.dispatch('job/updateCurrentJob', { job: {} });
await this.store.dispatch("maargJob/clearCurrentMaargJob")
this.currentJobStatus = ""
this.freqType = ""
this.isJobDetailAnimationCompleted = false
Expand Down
1 change: 1 addition & 0 deletions src/views/PreOrder.vue
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,7 @@ export default defineComponent({
if(isCurrentJobUpdateRequired) {
this.currentJob = "";
await this.store.dispatch('job/updateCurrentJob', { });
await this.store.dispatch("maargJob/clearCurrentMaargJob")
this.currentJobStatus = ""
this.freqType = '';
this.isJobDetailAnimationCompleted = false;
Expand Down
1 change: 1 addition & 0 deletions src/views/Product.vue
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ export default defineComponent({
if(isCurrentJobUpdateRequired) {
this.currentJob = ""
await this.store.dispatch('job/updateCurrentJob', { });
await this.store.dispatch("maargJob/clearCurrentMaargJob")
this.currentJobStatus = ""
this.freqType = ""
this.isJobDetailAnimationCompleted = false
Expand Down
1 change: 1 addition & 0 deletions src/views/Reports.vue
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ export default defineComponent({
if(isCurrentJobUpdateRequired) {
this.currentJob = "";
await this.store.dispatch('job/updateCurrentJob', { });
await this.store.dispatch("maargJob/clearCurrentMaargJob")
this.currentJobStatus = "";
this.isJobDetailAnimationCompleted = false;
}
Expand Down

0 comments on commit c1e304b

Please sign in to comment.