-
Notifications
You must be signed in to change notification settings - Fork 0
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
Hide the sub-steps if there is nothing to show. #81
Comments
Has this been implemented? The other day, I thought that I saw some sub-steps disappearing. Maybe they disappear when included view is broken? |
Most of the logic is handled inside the view that is responsible for the tabs (or "sub-steps" if you like). In the past we had some special exceptions, where in certain steps additional tabs where needed unique to only that specific step, that's why those exceptions where created inside the view logic. I will make this more uniform across all the steps and tabs (aka sub-steps) ASAP. |
I updated the logic for the sub-steps (tabs). Tabs are now displayed/hidden based on whether or not the respective field is set in the GL-Step (exception is "Data" tab, explained below). Before these updates the logic for the tabs looked like this:
Some clarifications:
I'm considering this done, therefore closing this issue now. |
Just a warning for the future: don't expand the fields if you only need to
check if they exist. It's costly.
…On Wed, 4 Sep 2019, 13:17 patrickkaleta, ***@***.***> wrote:
Closed #81 <#81>.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#81?email_source=notifications&email_token=AAWTC7RQF53H44ON4LPTE63QH6KOJA5CNFSM4IOYLQHKYY3PNVWWK3TUL52HS4DFWZEXG43VMVCXMZLOORHG65DJMZUWGYLUNFXW5KTDN5WW2ZLOORPWSZGOTNO7LKQ#event-2606626218>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAWTC7QL32OZXW26GLSCDTTQH6KOJANCNFSM4IOYLQHA>
.
|
Two questions:
|
In this view the
A good question. Currently it is not included in any of the GL-step display modes, so it's never shown. We could either For now, I would probably prefer the 2. option. @DenoBeno any other suggestions? |
I'm in favour of option (1) because those apps are neither maps nor tables. Furthermore, the "Include in Report" Button for iFrames supports ATM only one iFrame per page. |
I see... good, I will add an additional Tab (let's call it "External" or do you have a better name?). In theory this shouldn't be much work. Should be done and ready tomorrow. |
I've added an External tab, which is shown if the GL-step has the I've positioned this tab between the Maps and Twins tab, but this can be changed if necessary. ATM taking screenshots is not working for those external apps. I will report more on that in #60. |
We have a mechanism for defining templates for different study types in place now. If a GL-STEP step isn't defined at all, it is also not shown in the study.
However, all the sub-steps are always shown, even if there is nothing to see. This needs to be fixed.
The text was updated successfully, but these errors were encountered: