Browse Source

Fixed login bugs and improved speed load

pull/367/head
Ramiro Saenz 9 years ago
parent
commit
6e37265a2a
  1. 3
      app/Application.js
  2. 6
      app/ux/Auth0.js

3
app/Application.js

@ -30,9 +30,6 @@ Ext.define('Rambox.Application', {
ga_storage._setAccount('UA-80680424-1');
ga_storage._trackPageview('/index.html', 'main');
// Initialize Auth0
Rambox.ux.Auth0.init();
// Add shortcuts to switch services using CTRL + Number
var map = new Ext.util.KeyMap({
target: document

6
app/ux/Auth0.js

@ -113,7 +113,7 @@ Ext.define('Rambox.ux.Auth0', {
} else {
Ext.Msg.confirm('Clear services', 'Do you want to remove all your current services to start over?<br /><br />If <b>NO</b>, you will be logged out.', function(btnId) {
if ( btnId === 'yes' ) {
me.removeAllServices(false);
Ext.cq1('app-main').getController().removeAllServices(false);
} else {
me.logout();
}
@ -124,7 +124,7 @@ Ext.define('Rambox.ux.Auth0', {
} else if ( snapshot2.hasChildren() && Ext.getStore('Services').getCount() > 0 ) {
Ext.Msg.confirm('Confirm', 'To import your configuration, I need to remove all your current services. Do you want to continue?<br /><br />If <b>NO</b>, you will be logged out.', function(btnId) {
if ( btnId === 'yes' ) {
me.removeAllServices(false, function() {
Ext.cq1('app-main').getController().removeAllServices(false, function() {
importServices(snapshot2);
});
} else {
@ -164,6 +164,8 @@ Ext.define('Rambox.ux.Auth0', {
,login: function() {
var me = this;
if ( !me.auth0 ) Rambox.ux.Auth0.init();
me.lock.show();
}

Loading…
Cancel
Save