Simon McGinnes
Posts: 0
Joined: Tue Oct 21, 2014 6:41 am

Logout from any page

I want the user to be able to logout or perform various other common functions from any page in my app.

However, I have many pages and do not want too many buttons on every page. I also don't want to duplicate code on each page. Therefore I have made a menu (list component), saved it as a custom component, and added it in a sliding panel to each page, accessed from a menu button. That way, the user can get the menu from any page and log out or perform whatever other function they like.

However, I cannot access the logout service from the custom component.

Is there a way of accessing the logout service from the custom component, or another way of achieving what I want to do?

Regards,
Simon

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Logout from any page

Hi Simon,

[quote:]
However, I cannot access the logout service from the custom component.
[/quote]

You can access services added to your custom component by clicking “Edit Source” in the properties panel.

Return to “Issues”