On Logout revert back to Viewport
Hi,
In my app i had a logout button. I want when a user tap on it, user must be redirect to viewport.
In my app.js i had used
launch: function() {
Ext.create('Advait.view.Viewport');
},
For logout i had use below code in view
{
xtype: 'button',
docked: 'bottom',
ui: 'decline',
style: 'border-radius:0',
text: 'Logout',
action: 'logoutuser'
}
and a logout function in my controller
logout: function() {
console.log('User will Logout');
//What should i add here which will reload my vieport again
}
I am getting console.log message successfully. Please tell me which method will take me to viewport again.
Thanks
No, I didn't get any solution.