From 57ed3008d3c171440ceb575be4f2de204ac4406c Mon Sep 17 00:00:00 2001 From: Karina Kwiatek Date: Sun, 19 Mar 2023 14:54:55 +0100 Subject: [PATCH] Fix "Content missing" on "Show all notifications" --- app/views/navigation/dropdown/_notifications.html.haml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/navigation/dropdown/_notifications.html.haml b/app/views/navigation/dropdown/_notifications.html.haml index b95fbb63..94736452 100644 --- a/app/views/navigation/dropdown/_notifications.html.haml +++ b/app/views/navigation/dropdown/_notifications.html.haml @@ -1,12 +1,12 @@ - if notifications.count.zero? - %a.dropdown-item.text-center{ href: notifications_path('all') } + %a.dropdown-item.text-center{ href: notifications_path('all'), data: { turbo_frame: "_top" } } %i.fa.fa-fw.fa-chevron-right = t(".all") .dropdown-item.text-center.p-2 %i.fa.fa-bell-o.notification__bell-icon %p= t(".none") - else - %a.dropdown-item.text-center{ href: notifications_path } + %a.dropdown-item.text-center{ href: notifications_path, data: { turbo_frame: "_top" } } %i.fa.fa-fw.fa-chevron-right = t(".new") = link_to notifications_read_path, class: "dropdown-item text-center", data: { turbo_stream: true, turbo_method: :post } do