From 982e6d071995d461fdfe497d75e0909712b26b35 Mon Sep 17 00:00:00 2001 From: Sebastien Routier Date: Mon, 9 Apr 2018 13:52:39 -0400 Subject: [PATCH] Made the auto-hidding of the flash message a setting and added another setting to increase the auto-hide time delay. --- .settings-development.example | 2 ++ .settings-qa.example | 2 ++ resources/views/vendor/flash/message.blade.php | 14 ++++++++------ 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/.settings-development.example b/.settings-development.example index acd44f96..f3a0b17d 100755 --- a/.settings-development.example +++ b/.settings-development.example @@ -15,6 +15,8 @@ app.user_profile_link=true app.right_sidebar=true app.email_notifications=false app.time_format=24 +app.flash_notification_auto_hide_enabled=true +app.flash_notification_auto_hide_delay=10 theme.default=default diff --git a/.settings-qa.example b/.settings-qa.example index 301a671c..eec91d03 100755 --- a/.settings-qa.example +++ b/.settings-qa.example @@ -15,6 +15,8 @@ app.user_profile_link=true app.right_sidebar=true app.email_notifications=false app.time_format=24 +app.flash_notification_auto_hide_enabled=true +app.flash_notification_auto_hide_delay=10 theme.default=default diff --git a/resources/views/vendor/flash/message.blade.php b/resources/views/vendor/flash/message.blade.php index 1f3d0952..2ea6b8a4 100644 --- a/resources/views/vendor/flash/message.blade.php +++ b/resources/views/vendor/flash/message.blade.php @@ -15,13 +15,15 @@ {{ ucwords(Session::get('flash_notification.level')) }}! {{ Session::get('flash_notification.message') }} - + + @endif @endif {{ Session::forget('flash_notification') }} @endif