-
Notifications
You must be signed in to change notification settings - Fork 86
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
telekom-profile-menu logoutHandler #2348
Comments
After further checks, I noticed that the "logoutHandler" function is outside the Angular's control zone, which is causing the navigation to break. I also realized this while looking at the following warning: Would it be possible to change the logoutHandler so that it functions as a method, similar to how (scale-focus) works for inputs, for example? This way, it wouldn’t exit Angular’s control zone. |
hi @EdsonT-Systems ! sorry, I've had vacation prev week till today. I'll discuss this all with my colleague and will write you back. |
Oh, no worries! I hope you enjoyed your vacation. I’ll stay tuned for your response once you hear back from them :) @tshimber |
Guys, is it possible for you to change the logoutHandler property to a method? I know I was initially going to do it myself, but my team and I are currently at full capacity because we need to release the app to production, and I don’t have the time right now to develop it without being familiar with the tools yet. Once the workload eases a bit, I can continue to collaborate and help with whatever I can. @tshimber @amir-ba |
Scale Version
Latest
Framework and version
Angular latest with auto-generated scale wrapper packages
Current Behavior
The logoutHandler function does not work well with angular navigation
Expected Behavior Code Reproduction
A clear and concise description of what you expected to happen.
I haven't found a solution to make the logout function work correctly so that the navigation functions properly and the other components have enough time to render.
The ts and the template look like this:
Ui:![image](https://private-user-images.githubusercontent.com/147413490/364003292-c9e3c25f-c09c-4dae-94b9-8d357e29fa62.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzMzM2MjcsIm5iZiI6MTczOTMzMzMyNywicGF0aCI6Ii8xNDc0MTM0OTAvMzY0MDAzMjkyLWM5ZTNjMjVmLWMwOWMtNGRhZS05NGI5LThkMzU3ZTI5ZmE2Mi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEyJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMlQwNDA4NDdaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1iYTI2N2IwNmIyNmQ3MzUxZGU0N2VkODM3N2NmN2NjMGY2YTZiOWY3MTQyNDdmYzQ4NmJkN2NlNTIyNGU1MzI0JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.oPS73-H5QIeBOZKBOYDqkFkABeu3XmcPOj_IlGCKjtI)
-The behavior is that it redirects you and displays the console msg, and it also executes the internal logic. However, when the navigation occurs, the surrounding components do not render correctly.
Example:
Ui:
![image](https://private-user-images.githubusercontent.com/147413490/364006930-c5fac39e-6006-44ce-aacd-c582a9cef9e0.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzMzM2MjcsIm5iZiI6MTczOTMzMzMyNywicGF0aCI6Ii8xNDc0MTM0OTAvMzY0MDA2OTMwLWM1ZmFjMzllLTYwMDYtNDRjZS1hYWNkLWM1ODJhOWNlZjllMC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEyJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMlQwNDA4NDdaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT00YWEyN2QxYWYwMmM0NGNjM2RiOWRlNzEzNTFhOTVkMjNhYTE2YmE5MzRmZjJhYWQ3YWVhOWNiNTNhYzdhMzdmJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.rEswnZxXUYG5GLtlu9mLeiSClNwefjzZiN8O08bTNSg)
-However, when the same action is triggered by a click event (in parentheses), it executes without any issues, performing the same action and rendering the rest of the components properly.
Example:
@tshimber @acstll @felix-ico @amir-ba
The text was updated successfully, but these errors were encountered: