From 3f845e80917b93e9beac4d2f93c8174ee4f98e29 Mon Sep 17 00:00:00 2001 From: Ramiro Saenz Date: Wed, 4 Oct 2017 10:51:34 -0300 Subject: [PATCH] Removed code for past version fix --- app/Application.js | 70 ---------------------------------------------- 1 file changed, 70 deletions(-) diff --git a/app/Application.js b/app/Application.js index 5c8ba338..645b7c49 100644 --- a/app/Application.js +++ b/app/Application.js @@ -205,76 +205,6 @@ Ext.define('Rambox.Application', { Ext.cq1('app-main').getController().showLockWindow(); } - // Synchronization problem in version 0.5.3 steps to fix it - if ( localStorage.getItem('id_token') && localStorage.getItem('refresh_token') === null ) { - var win = Ext.create('Ext.window.Window', { - title: 'Backup your services' - ,autoShow: true - ,modal: true - ,closable: false - ,resizable: false - ,bodyPadding: '0 15 15 15' - ,width: 500 - ,layout: 'card' - ,items: [ - { - xtype: 'container' - ,html: '

Synchronization problem fixed!

In previous version, we had a bug that backing up your services throw an error. Now is fixed, but you will need to follow two simple steps to make it work.

If you decide not to do it now, you can cancel but it will ask you again next time you open Rambox until you do it.' - } - ,{ - xtype: 'container' - ,html: '

Login again

Just click the "Sign in" button at the bottom-right of this window to sign in again with the same account you used before.' - } - ,{ - xtype: 'container' - ,html: '

Backup

To finish, click the "Sync!" button to backup your current services and that\'s all!' - } - ] - ,buttons: [ - { - text: locale['button[1]'] - ,ui: 'decline' - ,handler: function() { - win.close(); - } - } - ,'->' - ,{ - text: 'Start' - ,handler: function(btn) { - btn.hide(); - btn.nextSibling('#signin').show(); - win.getLayout().setActiveItem(1); - } - } - ,{ - text: 'Sign in' - ,itemId: 'signin' - ,hidden: true - ,handler: function(btn) { - Rambox.ux.Auth0.backupCurrent = true; - Rambox.ux.Auth0.login(); - Ext.defer(Rambox.ux.Auth0.logout, 1000); - btn.hide(); - btn.nextSibling('#sync').show(); - win.getLayout().setActiveItem(2); - } - } - ,{ - text: 'Sync!' - ,itemId: 'sync' - ,hidden: true - ,handler: function() { - Rambox.ux.Auth0.backupConfiguration(function() { - win.close(); - Rambox.ux.Auth0.backupCurrent = false; - }); - } - } - ] - }); - } - // Remove spinner Ext.get('spinner').destroy(); }