Skip to content

Commit

Permalink
Improved: added support to show DataManagerLogs for mobile view(hotwa…
Browse files Browse the repository at this point in the history
  • Loading branch information
R-Sourabh committed Nov 13, 2024
1 parent 2c9dd31 commit 0e6ba95
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/views/DataManagerLogDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,12 @@
</ion-item>

<ion-label>
{{ getDateTime(log.startDateTime) }}
{{ log.startDateTime ? getDateTime(log.startDateTime) : '-' }}
<p>{{ translate('Started') }}</p>
</ion-label>

<ion-label>
{{ getDateTime(log.finishDateTime) }}
{{ log.finishDateTime ? getDateTime(log.finishDateTime) : '-' }}
<p>{{ translate('Finished') }}</p>
</ion-label>

Expand Down
6 changes: 5 additions & 1 deletion src/views/JobDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<ion-content>
<InitialJobConfiguration v-if="jobCategory === 'initial-load'" :type='type' :shopifyOrderId='lastShopifyOrderId' :key="currentJob" />
<JobConfiguration v-else :status="currentJob?.status === 'SERVICE_DRAFT' ? currentJob?.status : currentJob?.tempExprId" :type="freqType" :key="currentJob"/>
<JobConfiguration v-else :status="currentJob?.status === 'SERVICE_DRAFT' ? currentJob?.status : currentJob?.tempExprId" :type="freqType" :key="currentJob" :historyJobConfig="checkJobStatus(currentJob?.statusId)"/>
</ion-content>
</ion-page>
</template>
Expand Down Expand Up @@ -87,6 +87,10 @@ export default defineComponent({
const jobFreqTypeId = (Object.keys(this.jobFrequencyType).find((enumId: any) => enumId === id)) as any;
this.freqType = (id && jobFreqTypeId) && this.jobFrequencyType[jobFreqTypeId];
}
},
checkJobStatus(statusId: string) {
const statuses = ["SERVICE_CANCELLED", "SERVICE_CRASHED", "SERVICE_FAILED", "SERVICE_FINISHED", "SERVICE_RUNNING", "SERVICE_QUEUED"];
return statuses.includes(statusId);
}
},
mounted() {
Expand Down
2 changes: 1 addition & 1 deletion src/views/Pipeline.vue
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ export default defineComponent({
this.freqType = appFreqType ? appFreqType[1] : "default"
await this.store.dispatch('job/updateCurrentJob', { job });
if (!this.isDesktop && this.segmentSelected === 'history' && job.runtimeData?.configId) {
if(this.segmentSelected === 'history' && job.runtimeData?.configId) {
await this.store.dispatch('job/fetchDataManagerLogs', job.jobId)
}
if(!this.isDesktop && job?.jobId) {
Expand Down

0 comments on commit 0e6ba95

Please sign in to comment.