Hide push notifications settings

This commit is contained in:
Adrien Maston
2026-02-02 17:37:47 +01:00
parent 88d99e58bc
commit 270eacf43a
2 changed files with 3 additions and 3 deletions
@@ -1,7 +1,7 @@
<section class="panel unpad borderless center flex flex-column gap-half margin-block-start">
<section class="panel unpad borderless center flex flex-column gap-half">
<h2 class="txt-medium txt-uppercase divider margin-none-block-end">Email Notifications</h2>
<p class="margin-none">Get a single email with all your notifications every few hours, daily, or weekly.</p>
<%= form_with model: settings, url: notifications_settings_path,
<%= form_with model: settings, url: notifications_settings_path,
class: "flex flex-column gap-half",
method: :patch, local: true, data: { controller: "form" } do |form| %>
<div class="flex flex-column gap-half pad">
@@ -1,4 +1,4 @@
<div class="notifications__status panel fill-shade center" data-controller="notifications" data-notifications-subscriptions-url-value="<%= user_push_subscriptions_path(Current.user) %>" data-notifications-enabled-class="notifications--on">
<div class="notifications__status panel fill-shade center margin-block-end hide-on-native" data-controller="notifications" data-notifications-subscriptions-url-value="<%= user_push_subscriptions_path(Current.user) %>" data-notifications-enabled-class="notifications--on">
<h2 class="notifications__on-message txt-medium">Push notifications are ON</h2>
<h2 class="notifications__off-message txt-medium">Push notifications are OFF</h2>