From b32c8dd9f0676927841fd09e1569ff728853fcbe Mon Sep 17 00:00:00 2001 From: pablone Date: Sun, 13 Oct 2024 11:20:51 +0200 Subject: [PATCH] fix: refs #8004 more list style issues --- src/components/VnTable/VnTable.vue | 1 + src/components/common/RightMenu.vue | 13 ++------ src/components/ui/CardSummary.vue | 13 +++++--- src/pages/Customer/CustomerList.vue | 20 ++++++------ src/pages/Entry/EntryFilter.vue | 7 ----- src/pages/Order/OrderList.vue | 31 ++++++++++--------- src/pages/Shelving/Card/ShelvingSummary.vue | 2 +- src/pages/Supplier/Card/SupplierSummary.vue | 2 +- src/pages/Travel/Card/TravelCard.vue | 3 +- src/pages/Travel/Card/TravelSummary.vue | 2 +- src/pages/Travel/TravelList.vue | 1 + src/pages/Wagon/WagonList.vue | 1 - .../vnComponent/vnBreadcrumbs.spec.js | 6 +--- .../vnComponent/vnSearchBar.spec.js | 1 + .../wagonType/wagonTypeCreate.spec.js | 0 .../wagonType/wagonTypeEdit.spec.js | 0 .../integration/zone/zoneCreate.spec.js | 2 ++ .../cypress/integration/zone/zoneList.spec.js | 4 +-- 18 files changed, 48 insertions(+), 61 deletions(-) rename test/cypress/integration/{ => wagon}/wagonType/wagonTypeCreate.spec.js (100%) rename test/cypress/integration/{ => wagon}/wagonType/wagonTypeEdit.spec.js (100%) diff --git a/src/components/VnTable/VnTable.vue b/src/components/VnTable/VnTable.vue index a6edf8d87..3752be9a8 100644 --- a/src/components/VnTable/VnTable.vue +++ b/src/components/VnTable/VnTable.vue @@ -149,6 +149,7 @@ const tableModes = [ disable: $props.disableOption?.card, }, ]; + onBeforeMount(() => { setUserParams(route.query[$props.searchUrl]); hasParams.value = params.value && Object.keys(params.value).length !== 0; diff --git a/src/components/common/RightMenu.vue b/src/components/common/RightMenu.vue index 2cd6bbd17..81555067c 100644 --- a/src/components/common/RightMenu.vue +++ b/src/components/common/RightMenu.vue @@ -4,6 +4,8 @@ import { useI18n } from 'vue-i18n'; import { useStateStore } from 'stores/useStateStore'; import isMobile from 'src/composables/isMobile'; +const { t } = useI18n(); +const stateStore = useStateStore(); const slots = useSlots(); const hasContent = ref(false); const rightPanel = ref(null); @@ -21,13 +23,9 @@ onMounted(() => { childList: true, attributes: true, }); - if ((!slots['right-panel'] && !hasContent.value) || isMobile) stateStore.rightDrawer = false; }); - -const { t } = useI18n(); -const stateStore = useStateStore();