Skip to content

Commit f8a5721

Browse files
committed
put and post Tag
1 parent e019c16 commit f8a5721

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

services/static-webserver/client/source/class/osparc/form/tag/TagItem.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,9 +287,9 @@ qx.Class.define("osparc.form.tag.TagItem", {
287287
params.url = {
288288
tagId: this.getId()
289289
};
290-
fetch = osparc.data.Resources.fetch("tags", "put", params);
290+
fetch = osparc.store.Tags.getInstance().putTag(this.getId(), data);
291291
} else {
292-
fetch = osparc.data.Resources.fetch("tags", "post", params);
292+
fetch = osparc.store.Tags.getInstance().postTag(data);
293293
}
294294
fetch
295295
.then(tag => this.set(tag))

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

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,7 @@ qx.Class.define("osparc.store.Tags", {
5555
return this.tagsCached;
5656
},
5757

58-
postTag: function(name, parentTagId = null, workspaceId = null) {
59-
const newTagData = {
60-
name,
61-
parentTagId,
62-
workspaceId,
63-
};
58+
postTag: function(newTagData) {
6459
const params = {
6560
data: newTagData
6661
};

0 commit comments

Comments
 (0)