Commit f4eaa5aef3c4f4f3d43d2ce358818068a5624077
1 parent
7dd0f3cd
Exists in
master
and in
108 other branches
Display registry error when opening epntap tab.
Showing
1 changed file
with
10 additions
and
2 deletions
Show diff stats
js/app/views/EpnTapUI.js
... | ... | @@ -133,7 +133,7 @@ Ext.create('Ext.data.Store', { |
133 | 133 | // beforeload: function(s, operation) { console.log(operation); }, |
134 | 134 | load: function (store, records, successful) { |
135 | 135 | if (!successful) { |
136 | - Ext.Msg.alert('Error', 'Can not get epntap services from registries.') | |
136 | + store.errorMessage = 'Can not get epntap services from registries.' | |
137 | 137 | } |
138 | 138 | } |
139 | 139 | } |
... | ... | @@ -424,7 +424,15 @@ Ext.define('amdaUI.EpnTapUI', { |
424 | 424 | this.createServiceFilterPanel(), |
425 | 425 | this.createGridsPanel() |
426 | 426 | ] |
427 | - }] | |
427 | + }], | |
428 | + listeners: { | |
429 | + render: function () { | |
430 | + var service = Ext.data.StoreManager.lookup('servicesStore') | |
431 | + if (service.errorMessage) { | |
432 | + Ext.Msg.alert('Error', service.errorMessage) | |
433 | + } | |
434 | + } | |
435 | + } | |
428 | 436 | } |
429 | 437 | Ext.apply(this, Ext.apply(arguments, myConf)) |
430 | 438 | }, | ... | ... |