From 57c55107c08948c1bb2e22b21128d5b540fdb84d Mon Sep 17 00:00:00 2001 From: Paul Chavard Date: Sun, 8 May 2022 12:35:20 +0200 Subject: [PATCH] feat(turbo): longer dely before hiding flash messages --- app/views/layouts/application.turbo_stream.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/layouts/application.turbo_stream.haml b/app/views/layouts/application.turbo_stream.haml index 343964e1f..accaad848 100644 --- a/app/views/layouts/application.turbo_stream.haml +++ b/app/views/layouts/application.turbo_stream.haml @@ -1,6 +1,6 @@ - if flash.any? = turbo_stream.replace 'flash_messages', partial: 'layouts/flash_messages' - = turbo_stream.hide 'flash_messages', delay: 10000 + = turbo_stream.hide 'flash_messages', delay: 30000 - flash.clear = yield