Skip to content

Commit

Permalink
Implement htmx lazy loading for dashboard rendering page
Browse files Browse the repository at this point in the history
When sending dashboard emails, the lazy loading is turned off.
  • Loading branch information
sunnavy committed Mar 21, 2024
1 parent 9c77d53 commit 3ccc923
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions share/html/Dashboards/Elements/ShowPortlet/component
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,6 @@ if ($m->request_path =~ m{/SelfService/}) {
% RT->Logger->warning("You may need to replace the component 'Quicksearch' in the HomepageComponents config with 'QueueList'. See the UPGRADING-4.4 document.");
% }
% } else {
% local $m->notes->{HTMXLoadComponent} = $path if $Preview;
% $m->comp($full_path, HasResults => $HasResults);
% }
1 change: 1 addition & 0 deletions share/html/Dashboards/Elements/ShowPortlet/search
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,5 @@ my @for_showsearch = $Dashboard->ShowSearchName($Portlet);
hideable => $Preview,
ShowCustomize => $Preview,
HasResults => $HasResults,
HTMXLoad => $Preview ? 1 : 0,
&>

0 comments on commit 3ccc923

Please sign in to comment.