diff --git a/services/static-webserver/client/source/class/osparc/service/ServiceListItem.js b/services/static-webserver/client/source/class/osparc/service/ServiceListItem.js index 2de25faf1f3..c2bf481e19e 100644 --- a/services/static-webserver/client/source/class/osparc/service/ServiceListItem.js +++ b/services/static-webserver/client/source/class/osparc/service/ServiceListItem.js @@ -29,6 +29,7 @@ qx.Class.define("osparc.service.ServiceListItem", { allowGrowX: true }); + this.setResourceType("service"); if (serviceModel) { this.setServiceModel(serviceModel); } diff --git a/services/static-webserver/client/source/class/osparc/share/CollaboratorsService.js b/services/static-webserver/client/source/class/osparc/share/CollaboratorsService.js index ae07e6b4ce7..c83ad202cb5 100644 --- a/services/static-webserver/client/source/class/osparc/share/CollaboratorsService.js +++ b/services/static-webserver/client/source/class/osparc/share/CollaboratorsService.js @@ -100,7 +100,7 @@ qx.Class.define("osparc.share.CollaboratorsService", { gids.forEach(gid => { newAccessRights[gid] = this.self().getCollaboratorAccessRight(); }); - osparc.info.ServiceUtils.patchServiceData(this._serializedDataCopy, "accessRights", this._serializedDataCopy) + osparc.info.ServiceUtils.patchServiceData(this._serializedDataCopy, "accessRights", newAccessRights) .then(() => { this.fireDataEvent("updateAccessRights", this._serializedDataCopy); let text = this.tr("Editor(s) successfully added."); @@ -111,7 +111,7 @@ qx.Class.define("osparc.share.CollaboratorsService", { }) .catch(err => { console.error(err); - osparc.FlashMessenger.getInstance().logAs(this.tr("Something went adding editor(s)"), "ERROR"); + osparc.FlashMessenger.getInstance().logAs(this.tr("Something went wrong adding editor(s)"), "ERROR"); }) .finally(() => cb()); },