Skip to content

Commit f93dae3

Browse files
committed
minor
1 parent 075e4d5 commit f93dae3

File tree

1 file changed

+17
-14
lines changed

1 file changed

+17
-14
lines changed

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

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -206,20 +206,23 @@ qx.Class.define("osparc.support.ConversationPage", {
206206
if (extraContext && Object.keys(extraContext).length) {
207207
const ticketIdLabel = createExtraContextLabel(`Ticket ID: ${osparc.utils.Utils.uuidToShort(conversation.getConversationId())}`);
208208
extraContextLayout.add(ticketIdLabel);
209-
const fogbugzLink = conversation.getFogbugzLink();
210-
if (fogbugzLink && amISupporter) {
211-
const text = "Fogbugz Case: " + fogbugzLink.split("/").pop();
212-
const fogbugzLabel = new osparc.ui.basic.LinkLabel(text, fogbugzLink).set({
213-
font: "link-label-12",
214-
textColor: "text-disabled",
215-
allowGrowX: true,
216-
});
217-
extraContextLayout.add(fogbugzLabel);
218-
}
219-
const contextProjectId = conversation.getContextProjectId();
220-
if (contextProjectId && amISupporter) {
221-
const projectIdLabel = createExtraContextLabel(`Project ID: ${osparc.utils.Utils.uuidToShort(contextProjectId)}`);
222-
extraContextLayout.add(projectIdLabel);
209+
if (amISupporter) {
210+
const fogbugzLink = conversation.getFogbugzLink();
211+
if (fogbugzLink) {
212+
const text = "Fogbugz Case: " + fogbugzLink.split("/").pop();
213+
const fogbugzLabel = new osparc.ui.basic.LinkLabel(text, fogbugzLink).set({
214+
font: "link-label-12",
215+
textColor: "text-disabled",
216+
allowGrowX: true,
217+
});
218+
extraContextLayout.add(fogbugzLabel);
219+
}
220+
const contextProjectId = conversation.getContextProjectId();
221+
if (contextProjectId) {
222+
const projectIdLabel = createExtraContextLabel(`Project ID: ${osparc.utils.Utils.uuidToShort(contextProjectId)}`);
223+
extraContextLayout.add(projectIdLabel);
224+
}
225+
223226
}
224227
}
225228
};

0 commit comments

Comments
 (0)