From a9cdd69a20add1754327506ac98a14f3eb49b4ea Mon Sep 17 00:00:00 2001 From: Simon Redfern Date: Sun, 11 Oct 2015 11:35:05 +0100 Subject: [PATCH] BankId shows in bank lists too --- src/main/scala/code/snippet/ApiExplorer.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/code/snippet/ApiExplorer.scala b/src/main/scala/code/snippet/ApiExplorer.scala index 5f7e6848..d4bec802 100644 --- a/src/main/scala/code/snippet/ApiExplorer.scala +++ b/src/main/scala/code/snippet/ApiExplorer.scala @@ -222,7 +222,7 @@ class ApiExplorer extends Loggable { // Get a list of tuples List(("bank short name", "id"),("bank two", "id2")) to populate the drop down select list. // Could we write this in a way such that if there are no banks the doBankSelect is not run? - val bankOptions = ("", "Select Bank") :: banks.map(b => b.bankJsons.map(bj => (bj.id.getOrElse(""), bj.short_name.getOrElse("")))).getOrElse(List(("", "No Banks"))) + val bankOptions = ("", "Select Bank") :: banks.map(b => b.bankJsons.map(bj => (bj.id.getOrElse(""), bj.short_name.getOrElse("") + " (" + bj.id.getOrElse("") + ")"))).getOrElse(List(("", "No Banks"))) // TODO create BankId case class like in the API type BankID = String