Merge pull request #5457 from G-Chubinidze/gc_SCI_8302

Reports bottom action toolbar position update [SCI-8302]
This commit is contained in:
aignatov-bio 2023-05-23 12:02:55 +02:00 committed by GitHub
commit 2bbeef0775
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -102,6 +102,7 @@
function updateButtons() {
if (window.actionToolbarComponent) {
window.actionToolbarComponent.fetchActions({ report_ids: CHECKBOX_SELECTOR.selectedRows });
$('.dataTables_scrollBody').css('padding-bottom', `${CHECKBOX_SELECTOR.selectedRows.length > 0 ? 68 : 0}px`);
}
const rowsCount = CHECKBOX_SELECTOR.selectedRows.length;
@ -210,6 +211,7 @@
createdRow: addAttributesToRow,
initComplete: function(settings) {
initActionToolbar();
actionToolbarComponent.setBottomOffset(75);
const { nTableWrapper: dataTableWrapper } = settings;
CHECKBOX_SELECTOR = new DataTableCheckboxes(dataTableWrapper, {