Skip to content

Commit

Permalink
Improved: dateTime css and sorting batchOrderJobs (#620)
Browse files Browse the repository at this point in the history
  • Loading branch information
amansinghbais committed Nov 2, 2023
1 parent 2355ac7 commit 82050e8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
10 changes: 9 additions & 1 deletion src/components/BatchModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -310,4 +310,12 @@ export default defineComponent({
};
},
});
</script>
</script>

<style>
ion-modal.date-time-modal {
--width: 290px;
--height: 440px;
--border-radius: 8px;
}
</style>
5 changes: 4 additions & 1 deletion src/views/Brokering.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
</ion-item>
</ion-card>

<ion-card :button="isDesktop" v-for="batch in orderBatchJobs" :key="batch?.id" detail v-show="batch?.status === 'SERVICE_PENDING'" @click="hasPermission(Actions.APP_JOB_UPDATE) && viewJobConfiguration({ id: batch.enumId, job: batch })">
<ion-card :button="isDesktop" v-for="batch in batchJobs()" :key="batch?.id" detail v-show="batch?.status === 'SERVICE_PENDING'" @click="hasPermission(Actions.APP_JOB_UPDATE) && viewJobConfiguration({ id: batch.enumId, job: batch })">
<ion-card-header>
<div>
<ion-card-subtitle>{{ getBrokerQueue(batch) }}</ion-card-subtitle>
Expand Down Expand Up @@ -151,6 +151,9 @@ export default defineComponent({
}),
},
methods: {
batchJobs() {
return this.orderBatchJobs?.sort((jobA: any,jobB: any) => jobA.runTime - jobB.runTime)
},
async addBatch() {
const batchmodal = await modalController.create({
component: BatchModal,
Expand Down

0 comments on commit 82050e8

Please sign in to comment.