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/VnColumn.vue b/src/components/VnTable/VnColumn.vue index 4cff96425..aeccdb2d6 100644 --- a/src/components/VnTable/VnColumn.vue +++ b/src/components/VnTable/VnColumn.vue @@ -46,6 +46,7 @@ const defaultComponents = { component: markRaw(VnInput), attrs: { disable: !$props.isEditable, + class: 'fit', }, forceAttrs: { label: $props.showLabel && $props.column.label, @@ -55,6 +56,7 @@ const defaultComponents = { component: markRaw(VnInput), attrs: { disable: !$props.isEditable, + class: 'fit', }, forceAttrs: { label: $props.showLabel && $props.column.label, @@ -66,6 +68,7 @@ const defaultComponents = { readonly: true, disable: !$props.isEditable, style: 'min-width: 125px', + class: 'fit', }, forceAttrs: { label: $props.showLabel && $props.column.label, @@ -77,7 +80,7 @@ const defaultComponents = { const defaultAttrs = { disable: !$props.isEditable, 'model-value': Boolean(prop), - class: 'no-padding', + class: 'no-padding fit', }; if (typeof prop == 'number') { @@ -94,6 +97,7 @@ const defaultComponents = { component: markRaw(VnSelect), attrs: { disable: !$props.isEditable, + class: 'fit', }, forceAttrs: { label: $props.showLabel && $props.column.label, diff --git a/src/components/VnTable/VnFilter.vue b/src/components/VnTable/VnFilter.vue index 9ce050fe9..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', + class: 'q-px-xs q-pb-xs q-pt-none fit', dense: true, }; @@ -92,7 +92,7 @@ const components = { event: updateEvent, attrs: { dense: true, - class: $props.showTitle ? 'q-py-sm q-mt-md' : 'q-px-md q-py-xs', + class: $props.showTitle ? 'q-py-sm q-mt-md' : 'q-px-md q-py-xs fit', 'toggle-indeterminate': true, }, forceAttrs, @@ -101,7 +101,7 @@ const components = { component: markRaw(VnSelect), event: updateEvent, attrs: { - class: 'q-px-md q-pb-xs q-pt-none', + class: 'q-px-sm q-pb-xs q-pt-none fit', dense: true, filled: !$props.showTitle, }, @@ -138,14 +138,6 @@ const showFilter = computed( );