Skip to content

[MainUI] Wrong calculation of not shown add-ons #3455

@dilyanpalauzov

Description

@dilyanpalauzov

From https://community.openhab.org/t/java223-scripting-script-with-java-on-openhab-5-0-1-0-6-0-0-0 I download the https://github.com/dalgwen/openhab-addons/releases/download/5.0.1-java223-BETA4/org.openhab.automation.java223-5.0.1.jar file under /usr/share/openhab/addons in openHAB 5.1.0 Build 4911.

Then I visit GET /addons/automation/ which shows 16 automation addons and a button “Show 4 more”.

Image

I click on that button, the button disappears and again 16 automation addons are displayed.

Image

Few minutes before I started writing I think the text was “show 3 more”, but now it is consistently “show 4 more” when I reload the page.

  • The amount of not shown addons, which can be displayed by the button “Show [number] more” is not calculated correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingmain uiMain UI

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions