mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-29 19:51:01 +08:00
Hide experiment action row after archive/restore [SCI-8576] (#5519)
This commit is contained in:
parent
46fc3d17e6
commit
d3e11b0dde
1 changed files with 6 additions and 2 deletions
|
@ -17,8 +17,10 @@
|
|||
let archivedOnToFilter;
|
||||
|
||||
function updateExperimentsToolbar() {
|
||||
window.actionToolbarComponent.fetchActions({ experiment_ids: selectedExperiments });
|
||||
window.actionToolbarComponent.setReloadCallback(refreshCurrentView);
|
||||
if (window.actionToolbarComponent) {
|
||||
window.actionToolbarComponent.fetchActions({ experiment_ids: selectedExperiments });
|
||||
window.actionToolbarComponent.setReloadCallback(refreshCurrentView);
|
||||
}
|
||||
}
|
||||
|
||||
function initProjectsViewModeSwitch() {
|
||||
|
@ -105,6 +107,8 @@
|
|||
updateExperimentsToolbar();
|
||||
loadExperimentWorkflowImages();
|
||||
|
||||
selectedExperiments.length = 0;
|
||||
|
||||
InfiniteScroll.init(cardsWrapper, {
|
||||
url: cardsUrl,
|
||||
eventTarget: window,
|
||||
|
|
Loading…
Reference in a new issue