From 58d91c9c46e0ce5b6b0a53d01f3c8b057dadaea8 Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Sat, 2 Jul 2022 14:43:53 +0200 Subject: [PATCH] Improve export processing condition on index view --- app/controllers/settings/export_controller.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/controllers/settings/export_controller.rb b/app/controllers/settings/export_controller.rb index 6fa05b67..5656e614 100644 --- a/app/controllers/settings/export_controller.rb +++ b/app/controllers/settings/export_controller.rb @@ -4,9 +4,7 @@ class Settings::ExportController < ApplicationController before_action :authenticate_user! def index - if current_user.export_processing - flash[:info] = t(".info") - end + flash[:info] = t(".info") if current_user.export_processing end def create