You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by jo...@apache.org on 2021/07/06 15:21:11 UTC

[isis] 05/07: ISIS-2505 FieldsetPanel.legend capitalized

This is an automated email from the ASF dual-hosted git repository.

joergrade pushed a commit to branch ISIS-2505_Catch_Up_With_Demo_Examples
in repository https://gitbox.apache.org/repos/asf/isis.git

commit b0304a2c50ca418f7600f26e822ab78df111f26f
Author: Jörg Rade <jo...@kuehne-nagel.com>
AuthorDate: Fri Jul 2 08:33:27 2021 +0200

    ISIS-2505 FieldsetPanel.legend capitalized
---
 .../kotlin/org/apache/isis/client/kroviz/ui/builder/ColBuilder.kt   | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/incubator/clients/kroviz/src/main/kotlin/org/apache/isis/client/kroviz/ui/builder/ColBuilder.kt b/incubator/clients/kroviz/src/main/kotlin/org/apache/isis/client/kroviz/ui/builder/ColBuilder.kt
index 5274df1..e6188c3 100644
--- a/incubator/clients/kroviz/src/main/kotlin/org/apache/isis/client/kroviz/ui/builder/ColBuilder.kt
+++ b/incubator/clients/kroviz/src/main/kotlin/org/apache/isis/client/kroviz/ui/builder/ColBuilder.kt
@@ -27,7 +27,6 @@ import org.apache.isis.client.kroviz.to.bs3.Col
 import org.apache.isis.client.kroviz.ui.core.MenuFactory
 import org.apache.isis.client.kroviz.ui.core.RoDisplay
 import org.apache.isis.client.kroviz.ui.core.RoTable
-import org.apache.isis.client.kroviz.utils.Utils
 
 class ColBuilder : UiBuilder() {
 
@@ -47,8 +46,9 @@ class ColBuilder : UiBuilder() {
             val fsCpt = FieldSetBuilder().create(fs, tObject, dsp)!!
             var legend = fs.name
             if (legend.trim().length == 0) {
-                legend = Utils.enCamel(fs.id) //IMPROVE uppercase firstchar
+                legend = fs.id
             }
+            legend = legend.capitalize()
             val fsPanel = FieldsetPanel(legend = legend).add(fsCpt)
             val tto = TooltipOptions(title = fs.id)
             fsPanel.enableTooltip(tto)
@@ -67,7 +67,7 @@ class ColBuilder : UiBuilder() {
             console.log(collectionDM.grid)
             console.log(collectionDM.layout)
             val tblCpt = RoTable(collectionDM)
-            val fsPanel = FieldsetPanel(legend = key).add(tblCpt)
+            val fsPanel = FieldsetPanel(legend = key.capitalize()).add(tblCpt)
             panel.add(fsPanel)
             collectionDM.isRendered = true
         }