OpenEnergyPlatform / oeplatform

Repository for the code of the Open Energy Platform (OEP) website. The OEP provides an interface to the Open Energy Family
http://openenergyplatform.org/
GNU Affero General Public License v3.0
61 stars 19 forks source link

Scenario bundles: blank page when clicking on scenario tab, if the user is not logged in #1587

Closed adelmemariani closed 4 months ago

adelmemariani commented 4 months ago

When creating a new scenario bundle, if the user is not logged in, clicking the scenario tab leads to a black page which is confusing in the absence of any error message. Scenario tab is prevented because the user is not logged in.

Ideas of solution

Disable the "create new" button if the user is not logged in. Guide the user to the login page.

Workflow checklist

jh-RLI commented 4 months ago

Hm, the title of the problem suggests a different issue than the description. Can you be more specific about what you mean? I don't see the behaviour described in the title, but I see what you describe in the description :)

jh-RLI commented 4 months ago

Duplicated with https://github.com/OpenEnergyPlatform/oeplatform/issues/1586 ?

adelmemariani commented 4 months ago

You are right, I changed the description. Thank you for mentioning it.

jh-RLI commented 4 months ago

We should disable the "Create new" button if the user is not logged in. I just tried to do that, but it's a bit more effort than expected - I won't do that now. But as soon as the non-logged in user tries to create a bundle, he/she will be redirected to the login page.

adelmemariani commented 4 months ago

I did it with a tooltip for now.

Screenshot 2024-02-19 at 10 50 52

jh-RLI commented 4 months ago

I implemented a redirect in the save factsheet button. Maybe I can move this functionality to the create new button.