Fix table and comments bugs [SCI-10279][SCI-10285]

This commit is contained in:
Anton 2024-02-27 11:23:23 +01:00
parent aa68e18b34
commit 33cbfd4435
2 changed files with 4 additions and 2 deletions

View file

@ -245,7 +245,7 @@ export default {
</a>`;
},
openComments(_params, rows) {
this.$refs.commentButton.dataset.objectId = rows[0].id;
$(this.$refs.commentButton).data('objectId', rows[0].id);
this.$refs.commentButton.click();
},
access(event, rows) {

View file

@ -206,7 +206,7 @@ export default {
suppressCellFocus: true,
rowHeight: 40,
headerHeight: 40,
getRowId: (params) => `e2e-TB-row-${params.data.id}`
getRowId: (params) => `e2e-TB-row-${params.data.code || params.data.id}`
};
},
extendedColumnDefs() {
@ -359,7 +359,9 @@ export default {
state: this.tableState.columnsState,
applyOrder: true
});
setTimeout(() => {
this.gridApi.refreshHeader();
this.initializing = false;
}, 200);
},