Skip to content

Commit 97a77e3

Browse files
committed
Do not use the service alias anymore, use "app" instead
1 parent d2a092c commit 97a77e3

File tree

2 files changed

+10
-16
lines changed

2 files changed

+10
-16
lines changed

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

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -45,33 +45,25 @@ qx.Class.define("osparc.dashboard.SearchBarFilter", {
4545
HEIGHT: 36,
4646

4747
getSharedWithOptions: function(resourceType) {
48-
if (resourceType === "service") {
49-
resourceType = "app";
50-
}
48+
const resourceAlias = osparc.product.Utils.resourceTypeToAlias(resourceType, {
49+
firstUpperCase: true,
50+
plural: true
51+
});
5152
return [{
5253
id: "show-all",
53-
label: qx.locale.Manager.tr("All") + " " + osparc.product.Utils.resourceTypeToAlias(resourceType, {
54-
firstUpperCase: true,
55-
plural: true
56-
}),
54+
label: qx.locale.Manager.tr("All") + " " + resourceAlias,
5755
icon: "@FontAwesome5Solid/home/20"
5856
}, {
5957
id: "my-resources",
60-
label: qx.locale.Manager.tr("My") + " " + osparc.product.Utils.resourceTypeToAlias(resourceType, {
61-
firstUpperCase: true,
62-
plural: true
63-
}),
58+
label: qx.locale.Manager.tr("My") + " " + resourceAlias,
6459
icon: "@FontAwesome5Solid/user/20"
6560
}, {
6661
id: "shared-with-me",
6762
label: qx.locale.Manager.tr("Shared with Me"),
6863
icon: "@FontAwesome5Solid/users/20"
6964
}, {
7065
id: "shared-with-everyone",
71-
label: qx.locale.Manager.tr("Public") + " " + osparc.product.Utils.resourceTypeToAlias(resourceType, {
72-
firstUpperCase: true,
73-
plural: true
74-
}),
66+
label: qx.locale.Manager.tr("Public") + " " + resourceAlias,
7567
icon: "@FontAwesome5Solid/globe/20"
7668
}];
7769
}

services/static-webserver/client/source/class/osparc/product/Utils.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,9 @@ qx.Class.define("osparc.product.Utils", {
139139
case "template":
140140
return this.getTemplateAlias(options);
141141
case "service":
142-
return this.getServiceAlias(options);
142+
// return this.getServiceAlias(options);
143+
// Do not use this alias anymore, use "app" instead
144+
return this.getAppAlias(options);
143145
case "hypertool":
144146
return this.getHypertoolAlias(options);
145147
case "app":

0 commit comments

Comments
 (0)