From 84858214919a9db587975f7fd98533e949107bdf Mon Sep 17 00:00:00 2001 From: Nico Stapelbroek Date: Sun, 21 Jan 2018 12:22:14 +0100 Subject: [PATCH] Add setting to suppress notifications in maintenance mode --- config/setting.php | 13 +++++++++ resources/lang/en/forms.php | 29 ++++++++++--------- .../dashboard/settings/app-setup.blade.php | 11 +++++++ 3 files changed, 39 insertions(+), 14 deletions(-) diff --git a/config/setting.php b/config/setting.php index e438690a..38cad3d0 100644 --- a/config/setting.php +++ b/config/setting.php @@ -33,6 +33,19 @@ return [ 'enable_subscribers' => true, + + /* + |-------------------------------------------------------------------------- + | Suppress notifications while in maintenance + |-------------------------------------------------------------------------- + | + | Whether to suppress notification channels when an issue is created during + | planned or in-progress maintenance periods. + | + */ + + 'suppress_notifications_in_maintenance' => true, + /* |-------------------------------------------------------------------------- | Automatic Localization diff --git a/resources/lang/en/forms.php b/resources/lang/en/forms.php index aacc8e03..b43fe0a8 100644 --- a/resources/lang/en/forms.php +++ b/resources/lang/en/forms.php @@ -146,20 +146,21 @@ return [ 'settings' => [ // Application setup 'app-setup' => [ - 'site-name' => 'Site Name', - 'site-url' => 'Site URL', - 'display-graphs' => 'Display graphs on status page?', - 'about-this-page' => 'About this page', - 'days-of-incidents' => 'How many days of incidents to show?', - 'time_before_refresh' => 'Status page refresh rate (in seconds).', - 'banner' => 'Banner Image', - 'banner-help' => "It's recommended that you upload files no bigger than 930px wide .", - 'subscribers' => 'Allow people to signup to email notifications?', - 'skip_subscriber_verification' => 'Skip verifying of users? (Be warned, you could be spammed)', - 'automatic_localization' => 'Automatically localise your status page to your visitor\'s language?', - 'enable_external_dependencies' => 'Enable Third Party Dependencies (Google Fonts, Trackers, etc...)', - 'show_timezone' => 'Show the timezone the status page is running in.', - 'only_disrupted_days' => 'Only show days containing incidents in the timeline?', + 'site-name' => 'Site Name', + 'site-url' => 'Site URL', + 'display-graphs' => 'Display graphs on status page?', + 'about-this-page' => 'About this page', + 'days-of-incidents' => 'How many days of incidents to show?', + 'time_before_refresh' => 'Status page refresh rate (in seconds).', + 'banner' => 'Banner Image', + 'banner-help' => "It's recommended that you upload files no bigger than 930px wide .", + 'subscribers' => 'Allow people to signup to email notifications?', + 'suppress_notifications_in_maintenance' => 'Suppress notifications when incident occurs during maintenance period?', + 'skip_subscriber_verification' => 'Skip verifying of users? (Be warned, you could be spammed)', + 'automatic_localization' => 'Automatically localise your status page to your visitor\'s language?', + 'enable_external_dependencies' => 'Enable Third Party Dependencies (Google Fonts, Trackers, etc...)', + 'show_timezone' => 'Show the timezone the status page is running in.', + 'only_disrupted_days' => 'Only show days containing incidents in the timeline?', ], 'analytics' => [ 'analytics_google' => 'Google Analytics code', diff --git a/resources/views/dashboard/settings/app-setup.blade.php b/resources/views/dashboard/settings/app-setup.blade.php index 62cc0660..7238aeaf 100644 --- a/resources/views/dashboard/settings/app-setup.blade.php +++ b/resources/views/dashboard/settings/app-setup.blade.php @@ -68,6 +68,17 @@ +
+
+
+ +
+
+