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() { function updateButtons() {
if (window.actionToolbarComponent) { if (window.actionToolbarComponent) {
window.actionToolbarComponent.fetchActions({ report_ids: CHECKBOX_SELECTOR.selectedRows }); 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; const rowsCount = CHECKBOX_SELECTOR.selectedRows.length;
@ -210,6 +211,7 @@
createdRow: addAttributesToRow, createdRow: addAttributesToRow,
initComplete: function(settings) { initComplete: function(settings) {
initActionToolbar(); initActionToolbar();
actionToolbarComponent.setBottomOffset(75);
const { nTableWrapper: dataTableWrapper } = settings; const { nTableWrapper: dataTableWrapper } = settings;
CHECKBOX_SELECTOR = new DataTableCheckboxes(dataTableWrapper, { CHECKBOX_SELECTOR = new DataTableCheckboxes(dataTableWrapper, {