Skip to content

Commit 490070b

Browse files
committed
don't override
1 parent 204cd0a commit 490070b

File tree

1 file changed

+27
-41
lines changed

1 file changed

+27
-41
lines changed

services/static-webserver/client/source/class/osparc/support/ConversationListItem.js

Lines changed: 27 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ qx.Class.define("osparc.support.ConversationListItem", {
3636
apply: "__applyConversationId",
3737
},
3838

39+
/*
3940
thumbnail: {
4041
check: "String",
4142
init: null,
@@ -63,6 +64,7 @@ qx.Class.define("osparc.support.ConversationListItem", {
6364
nullable: false,
6465
event: "changeLastModified",
6566
},
67+
*/
6668
},
6769

6870
statics: {
@@ -94,69 +96,53 @@ qx.Class.define("osparc.support.ConversationListItem", {
9496
},
9597

9698
members: {
99+
/*
97100
_createChildControlImpl: function(id) {
98101
let control;
99102
switch (id) {
100-
case "card-holder-name":
101-
control = new qx.ui.basic.Label().set({
102-
font: "text-14"
103-
});
104-
this._add(control, {
105-
row: 0,
106-
column: this.self().GRID_POS.NAME
103+
case "thumbnail":
104+
control = new qx.ui.basic.Image().set({
105+
alignY: "middle",
106+
scale: true,
107+
allowGrowX: true,
108+
allowGrowY: true,
109+
allowShrinkX: true,
110+
allowShrinkY: true,
111+
maxWidth: 32,
112+
maxHeight: 32
107113
});
114+
this._add(control, this.self().GRID_POS.THUMBNAIL);
108115
break;
109-
case "card-type":
116+
case "title":
110117
control = new qx.ui.basic.Label().set({
111-
font: "text-14"
112-
});
113-
this._add(control, {
114-
row: 0,
115-
column: this.self().GRID_POS.TYPE
118+
font: "text-14",
119+
alignY: "middle",
116120
});
121+
this._add(control, this.self().GRID_POS.TITLE);
117122
break;
118-
case "card-number-masked":
123+
case "author":
119124
control = new qx.ui.basic.Label().set({
120-
font: "text-14"
121-
});
122-
this._add(control, {
123-
row: 0,
124-
column: this.self().GRID_POS.MASKED_NUMBER
125+
font: "text-13"
125126
});
127+
this._add(control, this.self().GRID_POS.AUTHOR);
126128
break;
127-
case "expiration-date":
129+
case "author":
128130
control = new qx.ui.basic.Label().set({
129-
font: "text-14"
130-
});
131-
this._add(control, {
132-
row: 0,
133-
column: this.self().GRID_POS.EXPIRATION_DATE
131+
font: "text-13"
134132
});
133+
this._add(control, this.self().GRID_POS.LAST_MODIFIED);
135134
break;
136-
case "details-button":
135+
case "enter-button":
137136
control = new qx.ui.form.Button().set({
138137
icon: "@FontAwesome5Solid/info/14"
139138
});
140-
control.addListener("execute", () => this.fireDataEvent("openPaymentMethodDetails", this.getKey()));
141-
this._add(control, {
142-
row: 0,
143-
column: this.self().GRID_POS.INFO_BUTTON
144-
});
145-
break;
146-
case "delete-button":
147-
control = new qx.ui.form.Button().set({
148-
icon: "@FontAwesome5Solid/trash/14"
149-
});
150-
control.addListener("execute", () => this.__deletePressed());
151-
this._add(control, {
152-
row: 0,
153-
column: this.self().GRID_POS.DELETE_BUTTON
154-
});
139+
this._add(control, this.self().GRID_POS.BUTTON);
155140
break;
156141
}
157142
158143
return control || this.base(arguments, id);
159144
},
145+
*/
160146

161147
__applyConversationId: function(conversationId) {
162148
osparc.store.ConversationsSupport.getInstance().getLastMessage(conversationId)

0 commit comments

Comments
 (0)