diff --git a/apps/admin/src/components/OrderBox/ShipmentOptionsBox.vue b/apps/admin/src/components/OrderBox/ShipmentOptionsBox.vue index 20ea4289f..106b794f8 100644 --- a/apps/admin/src/components/OrderBox/ShipmentOptionsBox.vue +++ b/apps/admin/src/components/OrderBox/ShipmentOptionsBox.vue @@ -15,7 +15,9 @@ {{ translate('notification_order_exported') }} - + diff --git a/apps/admin/src/components/common/ShipmentOptionsForm.vue b/apps/admin/src/components/common/ShipmentOptionsForm.vue index 618a20def..fea31b406 100644 --- a/apps/admin/src/components/common/ShipmentOptionsForm.vue +++ b/apps/admin/src/components/common/ShipmentOptionsForm.vue @@ -5,12 +5,18 @@ diff --git a/apps/admin/src/components/modals/ShipmentOptionsModal.vue b/apps/admin/src/components/modals/ShipmentOptionsModal.vue index 521f3aff6..a83397b46 100644 --- a/apps/admin/src/components/modals/ShipmentOptionsModal.vue +++ b/apps/admin/src/components/modals/ShipmentOptionsModal.vue @@ -4,7 +4,10 @@ :actions="actions" :modal-key="AdminModalKey.ShipmentOptions" title="shipment_options_title"> - + @@ -12,7 +15,6 @@ import {computed, defineAsyncComponent} from 'vue'; import {get} from '@vueuse/core'; import {AdminModalKey} from '../../types'; -import {useQueryStore} from '../../stores'; import {instantiateActions} from '../../services'; import {useOrdersData, usePluginSettings} from '../../composables'; import { @@ -31,16 +33,15 @@ import { const ShipmentOptionsModalForm = defineAsyncComponent(() => import('./ShipmentOptionsModalForm.vue')); const pluginSettings = usePluginSettings(); -const queryStore = useQueryStore(); const {orderMode} = pluginSettings.order; -queryStore.registerOrderQueries(); +const ordersData = computed(() => useOrdersData()); -const ordersData = useOrdersData(); +const orderIds = computed(() => get(ordersData).map((data) => get(data.order)?.externalIdentifier)); const actions = computed(() => { - const disabled = ordersData.some((data) => get(data.query.isLoading)); + const disabled = get(ordersData).some((data) => get(data.query.isLoading)); const actions = [ modalCloseAction, diff --git a/apps/admin/src/components/modals/ShipmentOptionsModalForm.vue b/apps/admin/src/components/modals/ShipmentOptionsModalForm.vue index 5544e4645..3e3d806a8 100644 --- a/apps/admin/src/components/modals/ShipmentOptionsModalForm.vue +++ b/apps/admin/src/components/modals/ShipmentOptionsModalForm.vue @@ -1,12 +1,22 @@