Don't display empty <div> on hosts dashboards (or bring back "screen" behaviour)

XMLWordPrintable

    • Type: Problem report
    • Resolution: Won't fix
    • Priority: Trivial
    • None
    • Affects Version/s: 6.0.3
    • Component/s: Frontend (F), Templates (T)
    • None
    • Environment:
      Debian 11

      Hello,

      Since Zabbix 5.2, screens have been replaced by hosts dashboards. A screen was displaying all graphs from a graph prototype on one page whereas hosts prototype only display a selected number of graph over multiple pages. Problem: when there are no graph to display, Zabbix shows empty placeholders.

      Step to reproduce:

      1. host template with a dashboard
      2. a widget to display graphs from a graph prototype (mounted filesystems for example)
      3. configure 1 column and n rows of graph
      4. display the host dashboard of a host with n+1 discovered items and go to the last page

      Expected behavior: Zabbix shows one last graph

      Current behavior: Zabbix show one graph and n-1 empty areas

      See screenshots attached with 4 rows of graphs.

      Solution : don't display empty <div> if there are no graphs to display or bring back the "screen" behavior where every graphs where displayed (no pagination)

        1. config.png
          config.png
          30 kB
        2. result.png
          result.png
          410 kB

            Assignee:
            Andrey Tocko (Inactive)
            Reporter:
            Nicolas C.
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: