Skip to content

Commit 4a362b7

Browse files
committed
aesthetics
1 parent b9cc607 commit 4a362b7

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

services/static-webserver/client/source/class/osparc/FlashMessenger.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,28 +88,29 @@ qx.Class.define("osparc.FlashMessenger", {
8888
const msg = this.extractMessage(error, defaultMessage);
8989
const flashMessage = this.getInstance().logAs(msg, "ERROR", duration);
9090
if (error && error["supportId"]) {
91-
flashMessage.addWidget(this.__createCopyEOCWidget(msg, error["supportId"]));
91+
flashMessage.addWidget(this.__createCopyOECWidget(msg, error["supportId"]));
92+
flashMessage.setDuration(flashMessage.getDuration()*2);
9293
}
9394
return flashMessage;
9495
},
9596

96-
__createCopyEOCWidget: function(message, supportId) {
97+
__createCopyOECWidget: function(message, supportId) {
9798
const errorLabel = new qx.ui.basic.Atom().set({
9899
label: supportId,
99100
icon: "@FontAwesome5Solid/copy/10",
100101
iconPosition: "right",
101102
gap: 8,
102103
cursor: "pointer",
103104
alignX: "center",
104-
allowGrowX: true,
105+
allowGrowX: false,
105106
});
106107
errorLabel.addListener("tap", () => {
107108
const dataToClipboard = {
108109
message,
109110
supportId,
110111
timestamp: new Date().toString(),
111112
url: window.location.href,
112-
studyId: osparc.store.Store.getInstance().getCurrentStudy() ? osparc.store.Store.getInstance().getCurrentStudy().getUuid() : "",
113+
studyId: osparc.store.Store.getInstance().getCurrentStudy() || "",
113114
}
114115
osparc.utils.Utils.copyTextToClipboard(JSON.stringify(dataToClipboard));
115116
});

0 commit comments

Comments
 (0)