Skip to content

Commit 6be8a34

Browse files
committed
"tagsChanged"
1 parent 3498dcd commit 6be8a34

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

services/static-webserver/client/source/class/osparc/dashboard/ResourceFilter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ qx.Class.define("osparc.dashboard.ResourceFilter", {
225225
osparc.utils.Utils.setIdToWidget(layout, this.__resourceType + "-tagsFilter");
226226

227227
this.__populateTags(layout, []);
228-
osparc.store.Store.getInstance().addListener("changeTags", () => {
228+
osparc.store.Tags.getInstance().addListener("tagsChanged", () => {
229229
this.__populateTags(layout, this.__getSelectedTagIds());
230230
}, this);
231231

services/static-webserver/client/source/class/osparc/store/Tags.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ qx.Class.define("osparc.store.Tags", {
2626
},
2727

2828
events: {
29-
"tagAdded": "qx.event.type.Data",
30-
"tagRemoved": "qx.event.type.Data",
29+
"tagsChanged": "qx.event.type.Data",
3130
},
3231

3332
members: {
@@ -62,7 +61,7 @@ qx.Class.define("osparc.store.Tags", {
6261
return osparc.data.Resources.getInstance().fetch("tags", "post", params)
6362
.then(tagData => {
6463
const tag = this.__addToCache(tagData);
65-
this.fireDataEvent("tagAdded", tag);
64+
this.fireDataEvent("tagsChanged", tag);
6665
return tag;
6766
});
6867
},
@@ -78,7 +77,7 @@ qx.Class.define("osparc.store.Tags", {
7877
const tag = this.getTag(tagId);
7978
if (tag) {
8079
this.__deleteFromCache(tagId);
81-
this.fireDataEvent("tagRemoved", tag);
80+
this.fireDataEvent("tagsChanged", tag);
8281
}
8382
})
8483
.catch(console.error);

0 commit comments

Comments
 (0)