Skip to content

Commit

Permalink
Improved: logic to clear current maarg job using clear action (hotwax…
Browse files Browse the repository at this point in the history
  • Loading branch information
amansinghbais committed Feb 28, 2025
1 parent 102e6ce commit d2fce39
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/views/Fulfillment.vue
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ export default defineComponent({
if(isCurrentJobUpdateRequired) {
this.currentJob = "";
await this.store.dispatch('job/updateCurrentJob', { });
await this.store.dispatch("maargJob/updateCurrentMaargJob", { job: {} })
await this.store.dispatch("maargJob/clearCurrentMaargJob")
this.currentJobStatus = "";
this.freqType = "";
this.isJobDetailAnimationCompleted = false;
Expand Down
2 changes: 1 addition & 1 deletion src/views/InitialLoad.vue
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ export default defineComponent({
if(isCurrentJobUpdateRequired) {
this.currentSelectedJobModal = "";
await this.store.dispatch('job/updateCurrentJob', { });
await this.store.dispatch("maargJob/updateCurrentMaargJob", { job: {} })
await this.store.dispatch("maargJob/clearCurrentMaargJob")
this.job = {};
this.lastShopifyOrderId = "";
this.isJobDetailAnimationCompleted = false;
Expand Down
2 changes: 1 addition & 1 deletion src/views/Inventory.vue
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ export default defineComponent({
if(isCurrentJobUpdateRequired) {
this.currentJob = "";
await this.store.dispatch('job/updateCurrentJob', { });
await this.store.dispatch("maargJob/updateCurrentMaargJob", { job: {} })
await this.store.dispatch("maargJob/clearCurrentMaargJob")
this.currentJobStatus = "";
this.freqType = "";
this.isJobDetailAnimationCompleted = false;
Expand Down
2 changes: 1 addition & 1 deletion src/views/Miscellaneous.vue
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ export default defineComponent({
if(isCurrentJobUpdateRequired) {
this.currentJob = "";
await this.store.dispatch('job/updateCurrentJob', { });
await this.store.dispatch("maargJob/updateCurrentMaargJob", { job: {} })
await this.store.dispatch("maargJob/clearCurrentMaargJob")
this.currentJobStatus = "";
this.isJobDetailAnimationCompleted = false;
}
Expand Down
2 changes: 1 addition & 1 deletion src/views/Orders.vue
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ export default defineComponent({
if(isCurrentJobUpdateRequired) {
this.currentJob = ""
await this.store.dispatch('job/updateCurrentJob', { });
await this.store.dispatch("maargJob/updateCurrentMaargJob", { job: {} })
await this.store.dispatch("maargJob/clearCurrentMaargJob")
this.currentJobStatus = ""
this.freqType = ""
this.isJobDetailAnimationCompleted = false
Expand Down
2 changes: 1 addition & 1 deletion src/views/Pipeline.vue
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,7 @@ export default defineComponent({
if(isCurrentJobUpdateRequired) {
this.jobsLoading = true;
await this.store.dispatch('job/updateCurrentJob', { job: {} });
await this.store.dispatch("maargJob/updateCurrentMaargJob", { job: {} })
await this.store.dispatch("maargJob/clearCurrentMaargJob")
this.currentJobStatus = ""
this.freqType = ""
this.isJobDetailAnimationCompleted = false
Expand Down
2 changes: 1 addition & 1 deletion src/views/PreOrder.vue
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ export default defineComponent({
if(isCurrentJobUpdateRequired) {
this.currentJob = "";
await this.store.dispatch('job/updateCurrentJob', { });
await this.store.dispatch("maargJob/updateCurrentMaargJob", { job: {} })
await this.store.dispatch("maargJob/clearCurrentMaargJob")
this.currentJobStatus = ""
this.freqType = '';
this.isJobDetailAnimationCompleted = false;
Expand Down
2 changes: 1 addition & 1 deletion src/views/Product.vue
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ export default defineComponent({
if(isCurrentJobUpdateRequired) {
this.currentJob = ""
await this.store.dispatch('job/updateCurrentJob', { });
await this.store.dispatch("maargJob/updateCurrentMaargJob", { job: {} })
await this.store.dispatch("maargJob/clearCurrentMaargJob")
this.currentJobStatus = ""
this.freqType = ""
this.isJobDetailAnimationCompleted = false
Expand Down
2 changes: 1 addition & 1 deletion src/views/Reports.vue
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export default defineComponent({
if(isCurrentJobUpdateRequired) {
this.currentJob = "";
await this.store.dispatch('job/updateCurrentJob', { });
await this.store.dispatch("maargJob/updateCurrentMaargJob", { job: {} })
await this.store.dispatch("maargJob/clearCurrentMaargJob")
this.currentJobStatus = "";
this.isJobDetailAnimationCompleted = false;
}
Expand Down

0 comments on commit d2fce39

Please sign in to comment.