Skip to content

Commit d3be679

Browse files
committed
minorDoc
1 parent d6612e5 commit d3be679

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

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

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ qx.Class.define("osparc.FlashMessenger", {
9595

9696
__createCopyEOCWidget: function(flashMessage, supportId) {
9797
const widget = new qx.ui.container.Composite(new qx.ui.layout.VBox()).set({
98-
paddingLeft: 8
98+
paddingLeft: 8,
99+
paddingRight: 8,
99100
});
100101
const showErrorLabel = new qx.ui.basic.Atom().set({
101102
label: qx.locale.Manager.tr("Show Support ID"),
@@ -111,6 +112,13 @@ qx.Class.define("osparc.FlashMessenger", {
111112
visibility: "excluded",
112113
});
113114
widget.add(hideErrorLabel);
115+
const minorDoc = new qx.ui.basic.Label().set({
116+
value: qx.locale.Manager.tr("If you contact support, please include this Support ID so we can quickly locate the issue."),
117+
rich: true,
118+
wrap: true,
119+
visibility: "excluded",
120+
});
121+
widget.add(minorDoc);
114122
const errorLabel = new qx.ui.basic.Atom().set({
115123
label: supportId,
116124
icon: "@FontAwesome5Solid/copy/10",
@@ -121,6 +129,7 @@ qx.Class.define("osparc.FlashMessenger", {
121129
showErrorLabel.addListener("tap", () => {
122130
showErrorLabel.exclude();
123131
hideErrorLabel.show();
132+
minorDoc.show();
124133
errorLabel.show();
125134

126135
if (flashMessage.timer) {
@@ -130,9 +139,10 @@ qx.Class.define("osparc.FlashMessenger", {
130139
}
131140
});
132141
hideErrorLabel.addListener("tap", () => {
142+
showErrorLabel.show();
133143
hideErrorLabel.exclude();
144+
minorDoc.exclude();
134145
errorLabel.exclude();
135-
showErrorLabel.show();
136146
});
137147
errorLabel.addListener("tap", () => osparc.utils.Utils.copyTextToClipboard(supportId));
138148
return widget;

0 commit comments

Comments
 (0)