Просмотр исходного кода

Fixes #17332: Restore pagination for object list dashboard widgets

Jeremy Stretch 1 год назад
Родитель
Сommit
5c33aa8bdd

+ 1 - 1
netbox/templates/extras/dashboard/widgets/objectlist.html

@@ -1,6 +1,6 @@
 {% load i18n %}
 {% if htmx_url and has_permission %}
-  <div class="htmx-container" hx-get="{{ htmx_url }}" hx-trigger="load" hx-target="this" hx-select="table" hx-swap="innerHTML"></div>
+  <div class="htmx-container" hx-get="{{ htmx_url }}" hx-trigger="load" hx-target="this" hx-swap="innerHTML"></div>
 {% elif htmx_url %}
   <div class="text-muted text-center">
     <i class="mdi mdi-lock-outline"></i> {% trans "No permission to view this content" %}.

+ 1 - 1
netbox/templates/home.html

@@ -28,7 +28,7 @@
 
 {% block page %}
   {# Render the user's customized dashboard #}
-  <div class="grid-stack m-2" id="dashboard">
+  <div class="grid-stack m-2" id="dashboard" hx-disinherit="*">
     {% for widget in dashboard %}
       {% include 'extras/dashboard/widget.html' %}
     {% endfor %}