From f4eaa5aef3c4f4f3d43d2ce358818068a5624077 Mon Sep 17 00:00:00 2001
From: Nathanaƫl Jourdane <njourdane@irap.omp.eu>
Date: Thu, 9 Aug 2018 16:11:18 +0200
Subject: [PATCH] Display registry error when opening epntap tab.

---
 js/app/views/EpnTapUI.js | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/js/app/views/EpnTapUI.js b/js/app/views/EpnTapUI.js
index 66b8f5d..8196858 100644
--- a/js/app/views/EpnTapUI.js
+++ b/js/app/views/EpnTapUI.js
@@ -133,7 +133,7 @@ Ext.create('Ext.data.Store', {
     // beforeload: function(s, operation) { console.log(operation); },
     load: function (store, records, successful) {
       if (!successful) {
-        Ext.Msg.alert('Error', 'Can not get epntap services from registries.')
+        store.errorMessage = 'Can not get epntap services from registries.'
       }
     }
   }
@@ -424,7 +424,15 @@ Ext.define('amdaUI.EpnTapUI', {
           this.createServiceFilterPanel(),
           this.createGridsPanel()
         ]
-      }]
+      }],
+      listeners: {
+        render: function () {
+          var service = Ext.data.StoreManager.lookup('servicesStore')
+          if (service.errorMessage) {
+            Ext.Msg.alert('Error', service.errorMessage)
+          }
+        }
+      }
     }
     Ext.apply(this, Ext.apply(arguments, myConf))
   },
--
libgit2 0.21.2