From 30fad13dc2102bdf6b55921aacfafc4222d45a00 Mon Sep 17 00:00:00 2001 From: Jan Suchal Date: Sat, 16 Nov 2024 20:13:42 +0100 Subject: [PATCH 1/2] Fix cache behaviour for visited links --- .env.test | 4 ++++ app/components/message_threads_table_component.html.erb | 2 +- .../message_threads_table_row_component.html.erb | 6 +++--- app/javascript/controllers/index.js | 3 +++ app/javascript/controllers/visited_links_controller.js | 8 ++++++++ 5 files changed, 19 insertions(+), 4 deletions(-) create mode 100644 app/javascript/controllers/visited_links_controller.js diff --git a/.env.test b/.env.test index 9b5f06bf3..d2432a2a1 100644 --- a/.env.test +++ b/.env.test @@ -11,5 +11,9 @@ ZwIDAQAB ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY=1 ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY=2 ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT=3 + +DB_HOST=localhost +DB_USER=postgres +DB_PASSWORD=password GROVER_NO_SANDBOX=true # must be true for running chromium as root in Docker container PDF_DISPLAY_URL= diff --git a/app/components/message_threads_table_component.html.erb b/app/components/message_threads_table_component.html.erb index 68f60cd92..dd789a1c4 100644 --- a/app/components/message_threads_table_component.html.erb +++ b/app/components/message_threads_table_component.html.erb @@ -2,7 +2,7 @@
<%= render MessageThreadsBulkActionsComponent.new(ids: [], filter: @filter, filter_subscription: @filter_subscription, signable: Current.user.signer?) %> <%= form_with url: bulk_actions_message_threads_path, data: { "form-target": "form", "all-checkboxes-target": "form" } do %> -