Added button to reset subscriber
diff --git a/views/ngXosViews/diagnostic/src/js/diagnostic.js b/views/ngXosViews/diagnostic/src/js/diagnostic.js
index 419dd7c..7d97fdb 100644
--- a/views/ngXosViews/diagnostic/src/js/diagnostic.js
+++ b/views/ngXosViews/diagnostic/src/js/diagnostic.js
@@ -10,23 +10,33 @@
this.loader = true;
this.error = false;
- Subscribers.query().$promise
- .then((subscribers) => {
- this.subscribers = subscribers;
- return ServiceRelation.get();
- })
- .then((serviceChain) => {
- this.serviceChain = serviceChain;
- // debug helper
- loadSubscriber(this.subscribers[0]);
- })
- .catch(e => {
- throw new Error(e);
- this.error = e;
- })
- .finally(() => {
- this.loader = false;
- });
+
+ const loadGlobalScope = () => {
+ Subscribers.query().$promise
+ .then((subscribers) => {
+ this.subscribers = subscribers;
+ return ServiceRelation.get();
+ })
+ .then((serviceChain) => {
+ this.serviceChain = serviceChain;
+ // debug helper
+ // loadSubscriber(this.subscribers[0]);
+ })
+ .catch(e => {
+ throw new Error(e);
+ this.error = e;
+ })
+ .finally(() => {
+ this.loader = false;
+ });
+ };
+
+ loadGlobalScope();
+
+ this.reloadGlobalScope = () => {
+ this.selectedSubscriber = null;
+ loadGlobalScope();
+ }
const loadSubscriber = (subscriber) => {
ServiceRelation.getBySubscriber(subscriber)