Skip to content

Commit f6acefb

Browse files
committed
backgroundColor
1 parent 08500ff commit f6acefb

File tree

2 files changed

+6
-13
lines changed

2 files changed

+6
-13
lines changed

services/static-webserver/client/source/class/osparc/vipStore/AnatomicalModelListItem.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ qx.Class.define("osparc.vipStore.AnatomicalModelListItem", {
8787
init: false,
8888
nullable: true,
8989
event: "changeLeased",
90+
apply: "__applyLeased",
9091
},
9192
},
9293

@@ -142,7 +143,11 @@ qx.Class.define("osparc.vipStore.AnatomicalModelListItem", {
142143
this.getChildControl("name").setValue(value);
143144
},
144145

145-
146+
__applyLeased: function(value) {
147+
if (value) {
148+
this.setBackgroundColor("strong-main");
149+
}
150+
},
146151

147152
_onPointerOver: function() {
148153
this.addState("hovered");

services/static-webserver/client/source/class/osparc/vipStore/VIPStore.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -109,18 +109,6 @@ qx.Class.define("osparc.vipStore.VIPStore", {
109109
configureItem: item => {
110110
item.subscribeToFilterGroup("vipModels");
111111
},
112-
group: model => {
113-
return model.getLeased ? model.getLeased() : null;
114-
},
115-
createGroupItem() {
116-
return new qx.ui.form.ListItem();
117-
},
118-
configureGroupItem: item => {
119-
item.setBackgroundColor("strong-color");
120-
},
121-
bindGroupItem: (controller, item, id) => {
122-
controller.bindProperty(null, "leased", null, item, id);
123-
},
124112
});
125113

126114
const loadingModel = {

0 commit comments

Comments
 (0)