Mailing List Archive

rt branch 6.0/htmx updated. rt-5.0.5-234-g3ccc923cca
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "rt".

The branch, 6.0/htmx has been updated
via 3ccc923ccabae8f2363e19b7a20759b5b2261b07 (commit)
from 9c77d53fdcf39c03d9f3750e4bed0a0cbd03b63b (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 3ccc923ccabae8f2363e19b7a20759b5b2261b07
Author: sunnavy <sunnavy@bestpractical.com>
Date: Thu Mar 21 09:14:16 2024 -0400

Implement htmx lazy loading for dashboard rendering page

When sending dashboard emails, the lazy loading is turned off.

diff --git a/share/html/Dashboards/Elements/ShowPortlet/component b/share/html/Dashboards/Elements/ShowPortlet/component
index 73f53fe788..1929673536 100644
--- a/share/html/Dashboards/Elements/ShowPortlet/component
+++ b/share/html/Dashboards/Elements/ShowPortlet/component
@@ -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);
% }
diff --git a/share/html/Dashboards/Elements/ShowPortlet/search b/share/html/Dashboards/Elements/ShowPortlet/search
index 8f9019d83e..2bc6352a07 100644
--- a/share/html/Dashboards/Elements/ShowPortlet/search
+++ b/share/html/Dashboards/Elements/ShowPortlet/search
@@ -62,4 +62,5 @@ my @for_showsearch = $Dashboard->ShowSearchName($Portlet);
hideable => $Preview,
ShowCustomize => $Preview,
HasResults => $HasResults,
+ HTMXLoad => $Preview ? 1 : 0,
&>

-----------------------------------------------------------------------

Summary of changes:
share/html/Dashboards/Elements/ShowPortlet/component | 1 +
share/html/Dashboards/Elements/ShowPortlet/search | 1 +
2 files changed, 2 insertions(+)


hooks/post-receive
--
rt
_______________________________________________
rt-commit mailing list
rt-commit@lists.bestpractical.com
https://lists.bestpractical.com/mailman/listinfo/rt-commit