From fb3ae87a3d0a1e4d6b4fd121f6c0ec2d6680a57c Mon Sep 17 00:00:00 2001 From: Yamel Senih Date: Mon, 28 Jun 2021 19:57:30 -0400 Subject: [PATCH] Change tab property name for Tab Manager (#950) --- src/components/ADempiere/TabManager/index.vue | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/components/ADempiere/TabManager/index.vue b/src/components/ADempiere/TabManager/index.vue index 9f398c13d8e..f2b7f6e5858 100644 --- a/src/components/ADempiere/TabManager/index.vue +++ b/src/components/ADempiere/TabManager/index.vue @@ -31,7 +31,7 @@ :name="String(key)" lazy :disabled="isDisabledTab(key)" - :style="tabParentStyle" + :style="tabStyle" > @@ -83,10 +82,10 @@ export default defineComponent({ }, setup(props, { root }) { - const currentTab = ref(root.$route.query.tabParent) + const currentTab = ref(root.$route.query.tab) const tabUuid = ref(props.tabsList[0].uuid) - const tabParentStyle = computed(() => { + const tabStyle = computed(() => { return { height: '75vh', overflow: 'auto' @@ -119,8 +118,8 @@ export default defineComponent({ } // watch router query tab parent value - watch(() => root.$route.query.tabParent, (newValue) => { - if (root.isEmptyValue(newValue) || newValue === 'create-new') { + watch(() => root.$route.query.tab, (newValue) => { + if (root.isEmptyValue(newValue)) { setTabNumber('0') return } @@ -133,7 +132,7 @@ export default defineComponent({ root.$router.push({ query: { ...root.$route.query, - tabParent: currentTab.value + tab: currentTab.value }, params: { ...root.$route.params @@ -148,7 +147,7 @@ export default defineComponent({ currentTab, tabUuid, // computed - tabParentStyle, + tabStyle, // meyhods handleClick, isDisabledTab