@@ -185,12 +187,13 @@
icon="el-icon-caret-bottom"
circle
class="el-button-window"
- @click="handleChangeShowedTabChildren()"
+ @click="handleChangeShowedTabChildren(false)"
/>
{
- this.generateWindow()
+ this.generateWindow(response)
})
},
- generateWindow() {
- this.windowMetadata = this.getterWindow
+ generateWindow(window) {
+ this.windowMetadata = window
let isShowRecords = this.isShowedRecordNavigation
if (isShowRecords === undefined) {
if ((['M', 'Q'].includes(this.windowMetadata.windowType) && this.getterRecordList >= 10 && this.$route.query.action !== 'create-new') ||
@@ -637,6 +644,7 @@ export default {
handleChangeShowedRecordNavigation(valueToChange) {
this.$store.dispatch('changeWindowAttribute', {
parentUuid: this.windowUuid, // act as parentUuid
+ window: this.windowMetadata,
attributeName: 'isShowedRecordNavigation',
attributeValue: valueToChange
})
@@ -645,11 +653,12 @@ export default {
this.isPanel = !this.isPanel
this.isShowedRecordPanel = !this.isShowedRecordPanel
},
- handleChangeShowedTabChildren() {
+ handleChangeShowedTabChildren(isShowedChilds) {
this.$store.dispatch('changeWindowAttribute', {
parentUuid: this.windowUuid, // act as parentUuid
+ window: this.windowMetadata,
attributeName: 'isShowedTabsChildren',
- attributeValue: !this.isShowedTabsChildren
+ attributeValue: isShowedChilds
})
}
}