Merge pull request #46 from MaxRobinsonTheGreat/mut-rate-editor

Mutation rate editor
This commit is contained in:
Max Robinson
2021-11-28 16:25:55 -06:00
committed by GitHub
4 changed files with 29 additions and 6 deletions

View File

@@ -143,9 +143,12 @@ class ControlPanel {
$(tab).css('display', 'grid');
self.engine.organism_editor.is_active = (this.id == 'editor');
self.stats_panel.stopAutoRender();
if (this.id == 'stats') {
if (this.id === 'stats') {
self.stats_panel.startAutoRender();
}
else if (this.id === 'editor') {
self.editor_controller.refreshDetailsPanel();
}
self.tab_id = this.id;
});
}