Clear row selection after experiment table reload [SCI-7647] (#4731)

This commit is contained in:
ajugo 2022-12-22 13:30:27 +01:00 committed by GitHub
parent e3036d923b
commit 2920dca900
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -427,6 +427,10 @@ var ExperimnetTable = {
.setProperty('--columns-count', $('.table-display-modal .fa-eye:not(.disabled)').length + 1);
});
},
clearRowTaskSelection: function() {
this.selectedMyModules = [];
this.updateExperimentToolbar();
},
initNewTaskModal: function(table) {
$('.experiment-new-my_module').on('ajax:success', '#new-my-module-modal', function() {
table.loadTable();
@ -507,6 +511,7 @@ var ExperimnetTable = {
});
initBSTooltips();
this.clearRowTaskSelection();
this.initProvisioningStatusPolling();
});
},
@ -557,7 +562,6 @@ var ExperimnetTable = {
this.initManageColumnsModal();
this.initNewTaskModal(this);
this.initMyModuleActions();
this.updateExperimentToolbar();
this.initRestoreMyModules();
this.initManageUsersDropdown();
}