Fixind redis events
Change-Id: If163afcc5ba5ba2235f539e05f02e4c120f49bae
diff --git a/src/app/datasources/websocket/global.ts b/src/app/datasources/websocket/global.ts
index aeb92b4..1367dc7 100644
--- a/src/app/datasources/websocket/global.ts
+++ b/src/app/datasources/websocket/global.ts
@@ -68,8 +68,11 @@
if (data.msg.object.class_names && angular.isString(data.msg.object.class_names)) {
const models = data.msg.object.class_names.split(',');
_.forEach(models, (m: string) => {
- data.model = m;
- this._events.next(data);
+ // send event only if the parent class is not the same as the model class
+ if (data.model !== m) {
+ data.model = m;
+ this._events.next(data);
+ }
});
}
diff --git a/src/app/main.html b/src/app/main.html
index 32e54a2..b525d04 100644
--- a/src/app/main.html
+++ b/src/app/main.html
@@ -15,18 +15,6 @@
limitations under the License.
-->
-
-<!--<div class="main-container">-->
- <!--<xos-header></xos-header>-->
- <!--<main class="main">-->
- <!--<xos-nav></xos-nav>-->
- <!--<div class="content">-->
- <!--<div ui-view></div>-->
- <!--</div>-->
- <!--</main>-->
- <!--<xos-footer></xos-footer>-->
-<!--</div>-->
-
<!-- Wrapper-->
<div class="wrapper">
@@ -41,4 +29,5 @@
</div>
</div>
-</div>
\ No newline at end of file
+</div>
+