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

Prevent unlogged rendering #451

Merged

Conversation

parostatkiem-zz
Copy link
Contributor

Description
✔️ Tested with all combinations of auth.use, auth.disableAutoLogin and login state.

Changes proposed in this pull request:

  • Add isHidden attribute to Authorization component which makes it not render anything, just fire onCreate hook (and proceed autologin)
  • Render the whole TopNav only if needed. Otherwise, "display" hidden Authorization.

Related issue(s)

Copy link
Contributor

@maxmarkus maxmarkus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Copy link
Contributor

@jesusreal jesusreal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see we are still rendering the anonymous content. If possible, could we just render nothing and redirect to login page?

Copy link
Contributor

@jesusreal jesusreal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please see my comments

core/src/navigation/TopNav.html Outdated Show resolved Hide resolved
core/src/Authorization.html Show resolved Hide resolved
core/src/navigation/TopNav.html Outdated Show resolved Hide resolved
@parostatkiem-zz parostatkiem-zz merged commit 9ec3b9b into SAP:master Apr 5, 2019
@parostatkiem-zz parostatkiem-zz deleted the Prevent-unlogged-rendering branch April 5, 2019 07:28
hardl referenced this pull request in hardl/luigi Apr 5, 2019
* Deactivate Typescript declaration file for Luigi Client (#466)

* Prevent unescaped characters in the Alert component (#461)

* ios scroll (#469)

* Prevent unlogged rendering (#451)

* Add ‘isHidden’ prop to Authorization component

* Render TopNav only if needed
stanleychh pushed a commit to stanleychh/luigi that referenced this pull request Dec 30, 2021
* Add ‘isHidden’ prop to Authorization component

* Render TopNav only if needed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants