diff --git a/client/src/main/scala/bugcracker/BgDetails.scala b/client/src/main/scala/bugcracker/BgDetails.scala index 7ab6e7d..a9794dd 100644 --- a/client/src/main/scala/bugcracker/BgDetails.scala +++ b/client/src/main/scala/bugcracker/BgDetails.scala @@ -2,7 +2,7 @@ package bugcracker import bugcracker.BgDetails.{isLoadingDone, searchRelated, searchRelatedNFR, selectedTab} import bugcracker.NavBarComponent.{NavbarMenuItem, route} -import com.thoughtworks.binding.Binding.{BindingSeq, Constants, Var} +import com.thoughtworks.binding.Binding.{BindingSeq, Constants, Var, Vars} import com.thoughtworks.binding.{Binding, FutureBinding, dom} import io.circe.parser.decode import models.{Bgbug, ESQuery, SearchResult} @@ -192,6 +192,7 @@ object BgDetails {  { "Missing Attachments" }

+ { renderPeople.bind }
{ leftPanel.bind }{ mainPanel.bind }{ rightPanelWithTabs.bind }
@@ -201,6 +202,29 @@ object BgDetails { + @dom def renderPeople: Binding[Node] = { + + val usereList = Vars.empty[String] + usereList.value += bgDoc.bind.`Assigned To`.replaceAll("\\s", "+") + usereList.value += bgDoc.bind.`Detected By`.replaceAll("\\s", "+") + usereList.value += bgDoc.bind.`Detected By`.replaceAll("\\s", "+") + println(" User List" + usereList) + val cssclass = s"rounded-circle z-depth-1-half" + // val userListCleaned = usereList.value.filter(_.nonEmpty) + val imageSource1 = s"https://ui-avatars.com/api/?name=" + + bgDoc.bind.`Assigned To`.replaceAll("\\s", "+") + + s"&background=0D8ABC&color=fff&size=32" + val imageSource2 = s"https://ui-avatars.com/api/?name=" + + bgDoc.bind.`Detected By`.replaceAll("\\s", "+") + + s"&background=0D8ABC&color=fff&size=32" +
+ { +
People :    
+

+ + } +
+ } @dom def leftPanel: Binding[Node] = {
Commits