Page 1 of 1

Logout from any page

Posted: Sun Nov 30, 2014 9:57 am
by Simon McGinnes

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


Logout from any page

Posted: Sun Nov 30, 2014 10:09 am
by Illya Stepanov

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.