Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

default template sidebar reload #53

Merged
merged 2 commits into from
Aug 16, 2023
Merged

Conversation

infacc
Copy link
Contributor

@infacc infacc commented Aug 7, 2023

This PR contains 2 improvements:

  • Without template URL parameter the plugin sidebar (experiment workspace tab) is always reloaded when the user selects a plugin. This PR stops the plugin sidebar from reloading when not necessary.
  • When navigating to the experiment info tab the template URL parameter persists. This might be undesirable when the user navigates back and forth between the info and the workspace tab with a default template set. In this PR the template URL parameter is removed when navigating to the experiment info tab.

When no template id is provided through the URL parameters the plugin sidebar (in the workspace) reloads on every plugin selection. To prevent the plugin sidebar from reloading plugins every time the selected plugin changes the loadActiveTemplateFromId method is now given the default template id when no template id is given.
When navigating to the experiment info tab the template URL parameter persisted. This might be undesirable when the user navigates back and forth between the info and the workspace tab with a default template set. Without persisting template URL parameter the user is always navigated to the default template when switching from the info to the workspace tab.
@infacc infacc merged commit ce492bc into main Aug 16, 2023
2 checks passed
@infacc infacc deleted the bugfix/default-template-sidebar-reload branch August 16, 2023 10:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants