Improve checkbox handling for tables [SCI-12062]

This commit is contained in:
Anton 2025-06-27 12:44:33 +02:00
parent 3290348860
commit 63a6867ab8

View file

@ -270,7 +270,8 @@ export default {
maxWidth: 40,
resizable: true,
pinned: 'left',
lockPosition: 'left'
lockPosition: 'left',
sortable: false
});
}
@ -453,6 +454,9 @@ export default {
currentViewRender: this.currentViewRender,
perPage: this.perPage
};
columnsState.find((column) => column.colId === 'checkbox').pinned = 'left';
const settings = {
key: this.stateKey,
data: tableState
@ -532,6 +536,11 @@ export default {
this.restoreSelection();
this.handleScroll();
})
.catch(() => {
this.dataLoading = false;
this.$emit('tableReloaded', [], { filtered: this.searchValue.length > 0 });
window.HelperModule.flashAlertMsg(this.i18n.t('general.error'), 'danger');
});
},
handleInfiniteScroll(response) {