Skip to content

Commit b383785

Browse files
committed
reuse
1 parent 8918710 commit b383785

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

services/static-webserver/client/source/class/osparc/po/UsersPending.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,6 @@ qx.Class.define("osparc.po.UsersPending", {
174174
});
175175
const statusChip = new osparc.ui.basic.Chip().set({
176176
label: pendingUser.accountRequestStatus.toLowerCase(),
177-
allowGrowX: false,
178177
});
179178
statusChip.getChildControl("label").set({
180179
font: "text-12",

services/static-webserver/client/source/class/osparc/service/StatusUI.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -237,9 +237,7 @@ qx.Class.define("osparc.service.StatusUI", {
237237
const chip = new osparc.ui.basic.Chip().set({
238238
label: osparc.service.Utils.DEPRECATED_SERVICE_TEXT,
239239
icon: osparc.service.StatusUI.getIconSource("deprecated"),
240-
textColor: "text-on-warning",
241-
backgroundColor: osparc.service.StatusUI.getColor("deprecated"),
242-
allowGrowX: false
240+
statusColor: "warning",
243241
});
244242
return chip;
245243
},
@@ -248,9 +246,7 @@ qx.Class.define("osparc.service.StatusUI", {
248246
const chip = new osparc.ui.basic.Chip().set({
249247
label: osparc.service.Utils.RETIRED_SERVICE_TEXT,
250248
icon: osparc.service.StatusUI.getIconSource("retired"),
251-
textColor: "text-on-warning",
252-
backgroundColor: osparc.service.StatusUI.getColor("retired"),
253-
allowGrowX: false
249+
statusColor: "error",
254250
});
255251
return chip;
256252
}

services/static-webserver/client/source/class/osparc/ui/basic/Chip.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ qx.Class.define("osparc.ui.basic.Chip", {
1010

1111
construct: function(label, icon) {
1212
this.base(arguments, label, icon);
13+
14+
this.set({
15+
allowGrowX: false,
16+
});
1317
},
1418

1519
properties: {

0 commit comments

Comments
 (0)