From 658020f2a8e1c4189b9787169d430facbe075b83 Mon Sep 17 00:00:00 2001 From: RishabhDhawad Date: Fri, 13 Oct 2023 13:57:21 +0530 Subject: [PATCH] Camel Case Corrected --- src/views/order-popover.vue | 12 ++++++------ src/views/orders.vue | 16 ++++++++-------- src/views/products.vue | 4 ++-- 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/views/order-popover.vue b/src/views/order-popover.vue index a17073d36..750f9637c 100644 --- a/src/views/order-popover.vue +++ b/src/views/order-popover.vue @@ -72,28 +72,28 @@ export default defineComponent({ return alert.present(); }, async openWarehouseList() { - const warehousemodal = await modalController.create({ + const warehouseModal = await modalController.create({ component: WarehouseModal, componentProps: { item: this.item, }, }); - warehousemodal.onDidDismiss().finally(() => { + warehouseModal.onDidDismiss().finally(() => { this.closePopover(); }); - return warehousemodal.present(); + return warehouseModal.present(); }, async editPromiseDate() { - const datemodal = await modalController.create({ + const dateModal = await modalController.create({ component: PromiseDateModal, componentProps: { item: this.item }, }); - datemodal.onDidDismiss().finally(() => { + dateModal.onDidDismiss().finally(() => { this.closePopover(); }); - return datemodal.present(); + return dateModal.present(); }, async cancelAlert() { const alert = await alertController.create({ diff --git a/src/views/orders.vue b/src/views/orders.vue index 4ca5f023c..8e640803e 100644 --- a/src/views/orders.vue +++ b/src/views/orders.vue @@ -401,39 +401,39 @@ export default defineComponent({ return alert.present(); }, async openWarehouseList() { - const warehousemodal = await modalController.create({ + const warehouseModal = await modalController.create({ component: WarehouseModal, cssClass: "my-custom-class", componentProps: { items: this.selectedItems }, }); - warehousemodal.onDidDismiss().finally(() => { + warehouseModal.onDidDismiss().finally(() => { // TODO FIX this it should deselect only on successful action this.deselectSelectedItems(); }) - return warehousemodal.present(); + return warehouseModal.present(); }, async openActiveJobs() { - const bgjobmodal = await modalController.create({ + const bgjobModal = await modalController.create({ component: BackgroundJobModal, cssClass: "my-custom-class", }); - return bgjobmodal.present(); + return bgjobModal.present(); }, async editPromiseDate() { - const datemodal = await modalController.create({ + const dateModal = await modalController.create({ component: PromiseDateModal, cssClass: "my-custom-class", componentProps: { items: this.selectedItems }, }); - datemodal.onDidDismiss().finally(() => { + dateModal.onDidDismiss().finally(() => { // TODO FIX this it should deselect only on successful action this.deselectSelectedItems(); }) - return datemodal.present(); + return dateModal.present(); }, selectItem: function(event: any, item: any) { const existingItemIndex = this.selectedItems.findIndex((element: any) => element.orderId === item.orderId && element.orderItemSeqId === item.orderItemSeqId) diff --git a/src/views/products.vue b/src/views/products.vue index d45fb7013..28b7b07b1 100644 --- a/src/views/products.vue +++ b/src/views/products.vue @@ -144,11 +144,11 @@ export default defineComponent({ }, async openActiveJobs() { - const bgjobmodal = await modalController.create({ + const bgjobModal = await modalController.create({ component: BackgroundJobModal, cssClass: "my-custom-class", }); - return bgjobmodal.present(); + return bgjobModal.present(); }, selectSearchBarText(event: any) { event.target.getInputElement().then((element: any) => {