Reinitialize the Table when switching the View from archived to active [SCI-7674]

This commit is contained in:
sboursen-scinote 2023-01-30 15:33:08 +01:00
parent a2a9e59518
commit 408dd7dcd8

View file

@ -152,12 +152,12 @@
viewSwitch.on('click', '.view-switch-archived', function() {
$('.repository-show').removeClass('active').addClass('archived');
$('#manage-repository-column').removeClass('active').addClass('archived');
RepositoryDatatable.reload();
initTable();
});
viewSwitch.on('click', '.view-switch-active', function() {
$('.repository-show').removeClass('archived').addClass('active');
$('#manage-repository-column').removeClass('archived').addClass('active');
RepositoryDatatable.reload();
initTable();
});
}