[ 
https://issues.apache.org/jira/browse/ISIS-3227?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andi Huber closed ISIS-3227.
----------------------------

> [NOT A PROBLEM] WicketViewer cssClass Expression
> ------------------------------------------------
>
>                 Key: ISIS-3227
>                 URL: https://issues.apache.org/jira/browse/ISIS-3227
>             Project: Isis
>          Issue Type: Bug
>          Components: Isis Viewer Wicket
>    Affects Versions: 2.0.0-M8
>            Reporter: Jörg Rade
>            Assignee: Andi Huber
>            Priority: Minor
>             Fix For: 2.0.0-M8
>
>         Attachments: 2022-09-29 13_03_39-Endpoints.png, image.png
>
>
> Setting icon colors via {{cssClass()}} doesn't work anymore.
>  !2022-09-29 13_03_39-Endpoints.png! 
> Compare screen above with  !image.png! 
> application.css:
> {code}
> .success .title-column .entityLinkSimplePanel  {
>     color: green;
> }
> .error .title-column .entityLinkSimplePanel {
>     color: red;
> }
> .running .title-column .entityLinkSimplePanel {
>     color: orange;
> }
> {code}
> and Endpoint.java:
> {code}
>     public String cssClass() {
>         if (response.startsWith(CheckResult.SUCCESS.getValue())) {
>             return "success";
>         }
>         if (response.startsWith(CheckResult.ERROR.getValue())) {
>             return "error";
>         }
>         return "running";
>     }
> {code}
> c.f. https://the-asf.slack.com/archives/CFC42LWBV/p1651833195371239
> Furthermore, after clicking on the column header (for sorting), font and row 
> colors changed.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to