-
Notifications
You must be signed in to change notification settings - Fork 47
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
Photometry plot does not render as initial tab on target detail page #573
Comments
Thanks, Griffin, for taking the time to submit the issue and reminding me! |
This seems related to issue #697 |
@griffin-h Sorry I'm just getting to this. Did you also set the tab-pane to active?
If you didn't do this, then even though the photometry tab is selected, the html associated with the observe tab will be visible on load. You would then need to select a different tab to sync things again before you could actually display the photometry which sounds like it might be your issue. I also want to point out that with Part of the motivation for this was to maintain the tab on a page refresh and to allow us to redirect to specific tabs after certain tasks are done. This could be useful when redirecting from any pages you've overwritten if you include these changes in Saguaro. Would you find it a useful feature for us to include something like a |
I didn't do this, but I just tried it, and it still doesn't work. As the page is loading, it initially looks like it's going to work, but then it snaps back to the built-in default tab (which I think is the first tab).
This is definitely useful! I would use it when redirecting back to the target page from custom pages I've written.
Yes, this would also be useful! Otherwise I don't know a way to set the default tab via the |
Resolved by setting the tab-pane to active and implementing the updated target detail javascript from tomtoolkit >= 2.15.12 The additional work of a customizable default tab has been spun off into Issue #783 |
I customized my TOM to show the photometry tab first when loading a target detail page by moving the "active" class from "observe-tab" to "photometry-tab":
This works to make that the default tab. However, the photometry plot does not initially load. You have to click to a different tab and then back to this tab to get it to load. Is there something else I need to change to get this to render automatically?
I discussed this with @phycodurus last week and he asked me to open a low-priority issue to remind him to look into it.
The text was updated successfully, but these errors were encountered: