mirror of https://github.com/portainer/portainer
fix(containers/datatable): disable autoreset expanded and selected rows [EE-2347] (#6563)
parent
9aeedf1bfa
commit
d962c300f9
|
@ -100,6 +100,10 @@ export function ContainersDatatable({
|
||||||
isRowSelectable(row: Row<DockerContainer>) {
|
isRowSelectable(row: Row<DockerContainer>) {
|
||||||
return !row.original.IsPortainer;
|
return !row.original.IsPortainer;
|
||||||
},
|
},
|
||||||
|
autoResetSelectedRows: false,
|
||||||
|
getRowId(originalRow: DockerContainer) {
|
||||||
|
return originalRow.Id;
|
||||||
|
},
|
||||||
selectCheckboxComponent: Checkbox,
|
selectCheckboxComponent: Checkbox,
|
||||||
},
|
},
|
||||||
useFilters,
|
useFilters,
|
||||||
|
|
|
@ -107,6 +107,9 @@ export function EdgeDevicesDatatable({
|
||||||
},
|
},
|
||||||
autoResetExpanded: false,
|
autoResetExpanded: false,
|
||||||
autoResetSelectedRows: false,
|
autoResetSelectedRows: false,
|
||||||
|
getRowId(originalRow: Environment) {
|
||||||
|
return originalRow.Id.toString();
|
||||||
|
},
|
||||||
selectColumnWidth: 5,
|
selectColumnWidth: 5,
|
||||||
},
|
},
|
||||||
useFilters,
|
useFilters,
|
||||||
|
|
Loading…
Reference in New Issue