Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed: code to close sliding option for skip action when it completes (#2ebeqzf). #182

Merged
merged 1 commit into from
Jul 29, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 22 additions & 17 deletions src/views/Orders.vue
Original file line number Diff line number Diff line change
Expand Up @@ -97,22 +97,24 @@
</ion-button>
</ion-item-divider>

<ion-item-sliding v-for="batch in orderBatchJobs" :key="batch?.id" detail v-show="batch?.status === 'SERVICE_PENDING'">
<ion-item @click="editBatch(batch.id, batch.systemJobEnumId)" button>
<ion-label class="ion-text-wrap">{{ batch?.jobName }}</ion-label>
<ion-note slot="end">{{ batch?.runTime ? getTime(batch.runTime) : '' }}</ion-note>
</ion-item>
<ion-item-options side="start">
<ion-item-option @click="skipBatch(batch)" color="secondary">
<ion-icon slot="icon-only" :icon="arrowRedoOutline" />
</ion-item-option>
</ion-item-options>
<ion-item-options side="end">
<ion-item-option @click="deleteBatch(batch)" color="danger">
<ion-icon slot="icon-only" :icon="trash" />
</ion-item-option>
</ion-item-options>
</ion-item-sliding>
<ion-list ref="slidingOptions">
<ion-item-sliding v-for="batch in orderBatchJobs" :key="batch?.id" detail v-show="batch?.status === 'SERVICE_PENDING'">
<ion-item @click="editBatch(batch.id, batch.systemJobEnumId)" button>
<ion-label class="ion-text-wrap">{{ batch?.jobName }}</ion-label>
<ion-note slot="end">{{ batch?.runTime ? getTime(batch.runTime) : '' }}</ion-note>
</ion-item>
<ion-item-options side="start">
<ion-item-option @click="skipBatch(batch)" color="secondary">
<ion-icon slot="icon-only" :icon="arrowRedoOutline" />
</ion-item-option>
</ion-item-options>
<ion-item-options side="end">
<ion-item-option @click="deleteBatch(batch)" color="danger">
<ion-icon slot="icon-only" :icon="trash" />
</ion-item-option>
</ion-item-options>
</ion-item-sliding>
</ion-list>
</ion-card>
</section>

Expand All @@ -139,6 +141,7 @@ import {
IonItemDivider,
IonItemSliding,
IonLabel,
IonList,
IonMenuButton,
IonNote,
IonItemOption,
Expand Down Expand Up @@ -177,6 +180,7 @@ export default defineComponent({
IonItemSliding,
IonItemDivider,
IonLabel,
IonList,
IonMenuButton,
IonNote,
IonItemOption,
Expand Down Expand Up @@ -271,7 +275,8 @@ export default defineComponent({
} else {
showToast(translate("This job schedule cannot be skipped"));
}
})
});
(this as any).$refs.slidingOptions.$el.closeSlidingItems();
},
}
]
Expand Down