Fixes #17332: Restore pagination for object list dashboard widgets

This commit is contained in:
Jeremy Stretch 2024-09-04 15:53:44 -04:00
parent 8cc0616019
commit 5c33aa8bdd
2 changed files with 2 additions and 2 deletions

View File

@ -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" %}.

View File

@ -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 %}