Skip to content

Commit

Permalink
Fixed no description bug
Browse files Browse the repository at this point in the history
  • Loading branch information
RubenMuellauer committed Nov 7, 2024
1 parent 0ab0360 commit 6943b15
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions UI5_Quality_Checks_App/webapp/libs/DialogBuild.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ var DialogBuild = (function () {
openIssues.forEach((oIssue) => {
var asignees = [new sap.m.Text({ text: "No one is assigned to this Issue" })];
var labels = [new sap.m.Text({ text: "There are no labels assigned to this Issue" })];
var body;
var body = "<p>There is no description setup in this Issue</p>";

if (oIssue.body) {
body = marked.parse(oIssue.body);

Check warning on line 55 in UI5_Quality_Checks_App/webapp/libs/DialogBuild.js

View workflow job for this annotation

GitHub Actions / srb-reuse-linter / js-linter-job

'marked' is not defined
Expand Down Expand Up @@ -77,7 +77,7 @@ var DialogBuild = (function () {
}),
new sap.m.HBox({
items: [new sap.m.Text({ text: "Labels: ", layoutData: new sap.m.FlexItemData({ styleClass: "marginRight" }) }), labels],
layoutData: new sap.m.FlexItemData({ styleClass: "marginBottom marginTop" })
layoutData: new sap.m.FlexItemData({ styleClass: "marginTop" })
}),
new sap.m.VBox({
items: [
Expand All @@ -87,7 +87,6 @@ var DialogBuild = (function () {
var bodyDialog = new sap.m.Dialog({
type: sap.m.Dialog.Message,
title: "Issue description",
contentWidth: "100%",
content: new sap.ui.core.HTML({ content: body }),
beginButton: new sap.m.Button({
text: "OK",
Expand Down

0 comments on commit 6943b15

Please sign in to comment.