Skip to content

Commit b8e9501

Browse files
committed
edit-options-menu-button
1 parent 03bc710 commit b8e9501

File tree

1 file changed

+23
-0
lines changed
  • services/static-webserver/client/source/class/osparc/conversation

1 file changed

+23
-0
lines changed

services/static-webserver/client/source/class/osparc/conversation/MessageUI.js

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,25 @@ qx.Class.define("osparc.conversation.MessageUI", {
109109
column: isMyMessage ? 0 : 2,
110110
});
111111
break;
112+
case "edit-options-menu-button": {
113+
const buttonSize = 22;
114+
control = new qx.ui.form.MenuButton().set({
115+
width: buttonSize,
116+
height: buttonSize,
117+
allowGrowX: false,
118+
allowGrowY: false,
119+
marginTop: 4,
120+
alignY: "top",
121+
icon: "@FontAwesome5Solid/ellipsis-v/14",
122+
focusable: false
123+
});
124+
this._add(control, {
125+
row: 0,
126+
column: 3,
127+
rowSpan: 2,
128+
});
129+
break;
130+
}
112131
}
113132

114133
return control || this.base(arguments, id);
@@ -143,6 +162,10 @@ qx.Class.define("osparc.conversation.MessageUI", {
143162
});
144163

145164
this.getChildControl("spacer");
165+
166+
if (this.self().isMyMessage(this.__message)) {
167+
this.getChildControl("edit-options-menu-button");
168+
}
146169
}
147170
}
148171
});

0 commit comments

Comments
 (0)