Skip to content

Commit

Permalink
Merge pull request #300 from shashwatbangar/#31v8g4k
Browse files Browse the repository at this point in the history
Fixed: Jobs list do not reset on Miscellaneous page(#31v8g4k)
  • Loading branch information
adityasharma7 authored Dec 2, 2022
2 parents e5b69fe + 438ca8d commit 6695f7e
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/views/Miscellaneous.vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
<script lang="ts">
import { DateTime } from 'luxon';
import {
IonButton,
IonContent,
IonHeader,
IonInfiniteScroll,
Expand All @@ -73,6 +74,7 @@ import { isFutureDate } from '@/utils';
export default defineComponent({
name: 'Miscellaneous',
components: {
IonButton,
IonContent,
IonHeader,
IonInfiniteScroll,
Expand All @@ -94,6 +96,7 @@ export default defineComponent({
},
data() {
return {
currentJob: '' as any,
currentJobTitle: '',
currentJobStatus: '',
isJobDetailAnimationCompleted: false,
Expand All @@ -105,7 +108,6 @@ export default defineComponent({
...mapGetters({
miscellaneousJobs: 'job/getMiscellaneousJobs',
getCurrentEComStore:'user/getCurrentEComStore',
currentJob: 'job/getCurrentJob',
isMiscellaneousJobsScrollable: 'job/isMiscellaneousJobsScrollable'
})
},
Expand All @@ -120,7 +122,7 @@ export default defineComponent({
job.runTime = ''
}
await this.store.dispatch('job/updateCurrentJob', { job });
await this.store.dispatch('job/updateCurrentJob', { job: this.currentJob });
if(!this.isDesktop && job?.jobId) {
this.router.push({name: 'JobDetails', params: { title: this.currentJobTitle, jobId: job?.jobId, category: "miscellaneous"}});
return;
Expand All @@ -142,7 +144,7 @@ export default defineComponent({
event.target.complete();
})
},
async refreshJobs(event: any) {
async refreshJobs(event?: any) {
this.isRetrying = true;
this.getMiscellaneousJobs().then(() => {
if(event) event.target.complete();
Expand All @@ -168,6 +170,3 @@ export default defineComponent({
},
})
</script>

<style scoped>
</style>

0 comments on commit 6695f7e

Please sign in to comment.