Skip to content

Commit

Permalink
#17 - Add team to Common pane
Browse files Browse the repository at this point in the history
  • Loading branch information
Steffen Ritter committed Jan 20, 2021
1 parent a5f1e15 commit 9faaf85
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions controller/web/template/js/visRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,14 +148,17 @@ visRenderer.clickEventListener= function (nodeParams, projectData) {
if (typeof app.summary != "undefined") {
commonTab = app.summary
}
if (typeof app.description != "undefined") {
commonTab = commonTab + `<p>${app.description}</p>`
}

let incomingDep = vistectureHelper.GetIncomingDependencies(projectData,app.id)

commonTab = commonTab + `<p class="pt-1"><strong>Consumers:</strong>There are <strong>#${incomingDep.length}</strong> consumers</p>`
commonTab = commonTab + `<p class="pt-1"><strong>Group:</strong> ${app.group}</p>`
if (typeof app.description != "undefined") {
commonTab = commonTab + `<p><small>${app.description}</small></p>`
}
let propContent = ""
commonTab = commonTab + `<p class="pt-1"><strong>Group:</strong> ${app.group}</p>`
commonTab = commonTab + `<p class="pt-1"><strong>Team:</strong> ${app.team}</p>`

let propContent = ""
for (var pIndex in app.properties) {
let property = app.properties[pIndex]
propContent += `<tr><td>${pIndex}</td><td>${property}</td></tr>`
Expand Down

0 comments on commit 9faaf85

Please sign in to comment.