diff --git a/src/boot/axios.js b/src/boot/axios.js index 4fd83ddea..fa8a08003 100644 --- a/src/boot/axios.js +++ b/src/boot/axios.js @@ -55,10 +55,10 @@ const onResponseError = (error) => { } if (session.isLoggedIn() && response?.status === 401) { - session.destroy(); + session.destroy(false); const hash = window.location.hash; const url = hash.slice(1); - Router.push({ path: url }); + Router.push(`/login?redirect=${url}`); } else if (!session.isLoggedIn()) { return Promise.reject(error); } diff --git a/src/components/CreateManualInvoiceForm.vue b/src/components/CreateManualInvoiceForm.vue index 92399c20c..1aa95011f 100644 --- a/src/components/CreateManualInvoiceForm.vue +++ b/src/components/CreateManualInvoiceForm.vue @@ -46,22 +46,6 @@ const onDataSaved = async (formData, requestResponse) => { @on-fetch="(data) => (taxAreasOptions = data)" auto-load /> - - { option-value="id" v-model="data.ticketFk" @update:model-value="data.clientFk = null" + url="Tickets" + :where="{ refFk: null }" + :fields="['id', 'nickname']" + :filter-options="{ order: 'shipped DESC' }" > + + diff --git a/src/components/VnTable/VnFilter.vue b/src/components/VnTable/VnFilter.vue index b3386899f..b0b7c4756 100644 --- a/src/components/VnTable/VnFilter.vue +++ b/src/components/VnTable/VnFilter.vue @@ -40,7 +40,7 @@ const enterEvent = { const defaultAttrs = { filled: !$props.showTitle, - class: 'q-px-sm q-pb-xs q-pt-none fit', + class: 'q-px-xs q-pb-xs q-pt-none fit', dense: true, }; @@ -101,7 +101,7 @@ const components = { component: markRaw(VnSelect), event: updateEvent, attrs: { - class: 'q-px-md q-pb-xs q-pt-none fit', + class: 'q-px-sm q-pb-xs q-pt-none fit', dense: true, filled: !$props.showTitle, }, @@ -138,14 +138,6 @@ const showFilter = computed( );