Skip to content

Commit

Permalink
Merge pull request #6064 in SW/shopware from sw-20904/5.3/fix-frw to 5.3
Browse files Browse the repository at this point in the history
* commit 'cdda7bdf6bd99ba6c4790ecb30edb5f52423ab33':
  SW-20904 - Fix FirstRunWizard
  • Loading branch information
soebbing committed Jan 17, 2018
2 parents df0aea1 + cdda7bd commit d7b6dc8
Showing 1 changed file with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,13 @@ Ext.define('Shopware.apps.PluginManager.controller.Main', {

init: function() {
var me = this,
mask = new Ext.LoadMask(Ext.ComponentQuery.query('viewport')[0], { msg: this.snippets.checkingStoreMessage });
mask,
viewport = Ext.ComponentQuery.query('viewport');

mask.show();
if (viewport.length > 0) {
mask = new Ext.LoadMask(viewport[0], { msg: this.snippets.checkingStoreMessage });
mask.show();
}

Ext.Ajax.request({
url: '{url controller=PluginManager action=pingStore}',
Expand Down Expand Up @@ -77,7 +81,9 @@ Ext.define('Shopware.apps.PluginManager.controller.Main', {
return;
}

mask.destroy();
if (mask) {
mask.destroy();
}
me.mainWindow.show();
}
});
Expand Down

0 comments on commit d7b6dc8

Please sign in to comment.