Skip to content

Commit 38f1d6f

Browse files
committed
[skip ci] minor
1 parent 7eb923e commit 38f1d6f

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

services/static-webserver/client/source/class/osparc/metadata/ServicesInStudyUpdate.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -90,14 +90,6 @@ qx.Class.define("osparc.metadata.ServicesInStudyUpdate", {
9090
const inaccessibleLabel = new qx.ui.basic.Label(inaccessibleText);
9191
labels.push(inaccessibleLabel);
9292
}
93-
if (this.self().anyServiceDeprecated(this._studyData)) {
94-
let deprecatedText = this.tr("Services marked in yellow are deprecated, they will be retired soon.");
95-
if (canIWrite) {
96-
deprecatedText += " " + this.tr("They can be updated by pressing the Update button.");
97-
}
98-
const deprecatedLabel = new qx.ui.basic.Label(deprecatedText);
99-
labels.push(deprecatedLabel);
100-
}
10193
if (this.self().anyServiceRetired(this._studyData)) {
10294
let retiredText = this.tr("Services marked in red are retired: you cannot use them anymore.");
10395
if (canIWrite) {
@@ -109,6 +101,14 @@ qx.Class.define("osparc.metadata.ServicesInStudyUpdate", {
109101
const retiredLabel = new qx.ui.basic.Label(retiredText);
110102
labels.push(retiredLabel);
111103
}
104+
if (this.self().anyServiceDeprecated(this._studyData)) {
105+
let deprecatedText = this.tr("Services marked in yellow are deprecated, they will be retired soon.");
106+
if (canIWrite) {
107+
deprecatedText += " " + this.tr("They can be updated by pressing the Update button.");
108+
}
109+
const deprecatedLabel = new qx.ui.basic.Label(deprecatedText);
110+
labels.push(deprecatedLabel);
111+
}
112112
const updatableServices = this.self().updatableNodeIds(this._studyData["workbench"]);
113113
if (updatableServices.length === 0) {
114114
const upToDateText = this.tr("All services are up to date to their latest compatible version.");

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ qx.Class.define("osparc.store.Services", {
3232

3333
osparc.data.Resources.getInstance().getAllPages("servicesV2")
3434
.then(servicesArray => {
35-
// OM: remove history, it will be retired
35+
// OM: remove history, it is deprecated
3636
// servicesArray.forEach(service => delete service["history"]);
3737

3838
const servicesObj = osparc.service.Utils.convertArrayToObject(servicesArray);

0 commit comments

Comments
 (0)