diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 65b1786c2..567f27360 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -958,6 +958,9 @@ "settings_new_features": { "message": "Releases new features" }, + "settings_new_promotions": { + "message": "Has product promotions" + }, "settings_new_trackers": { "message": "Adds new trackers to its tracker library" }, diff --git a/app/panel/components/Settings/Notifications.jsx b/app/panel/components/Settings/Notifications.jsx index 9569486d7..6b658001b 100644 --- a/app/panel/components/Settings/Notifications.jsx +++ b/app/panel/components/Settings/Notifications.jsx @@ -41,6 +41,12 @@ const Notifications = (props) => { +
+
+ + +
+
diff --git a/src/classes/ConfData.js b/src/classes/ConfData.js index 121c77ef2..f851534bf 100644 --- a/src/classes/ConfData.js +++ b/src/classes/ConfData.js @@ -121,6 +121,7 @@ class ConfData { _initProperty('is_expert', false); _initProperty('last_cmp_date', 0); _initProperty('notify_library_updates', false); + _initProperty('notify_promotions', true); _initProperty('notify_upgrade_updates', true); _initProperty('paid_subscription', false); _initProperty('rewards_accepted', false); diff --git a/src/classes/Globals.js b/src/classes/Globals.js index ed481d1bd..900874ff8 100644 --- a/src/classes/Globals.js +++ b/src/classes/Globals.js @@ -114,6 +114,7 @@ class Globals { 'is_expanded', 'is_expert', 'notify_library_updates', + 'notify_promotions', 'notify_upgrade_updates', 'reload_banner_status', 'selected_app_ids', diff --git a/src/classes/PanelData.js b/src/classes/PanelData.js index 006738f2e..2946285e0 100644 --- a/src/classes/PanelData.js +++ b/src/classes/PanelData.js @@ -507,7 +507,7 @@ class PanelData { alert_bubble_pos, alert_bubble_timeout, block_by_default, enable_autoupdate, enable_click2play, enable_click2play_social, enable_human_web, enable_offers, enable_metrics, hide_alert_trusted, ignore_first_party, notify_library_updates, - notify_upgrade_updates, selected_app_ids, show_alert, show_badge, + notify_promotions, notify_upgrade_updates, selected_app_ids, show_alert, show_badge, show_cmp, show_tracker_urls, toggle_individual_trackers } = userSettingsSource; @@ -524,6 +524,7 @@ class PanelData { hide_alert_trusted, ignore_first_party, notify_library_updates, + notify_promotions, notify_upgrade_updates, selected_app_ids, show_alert,