From c8dd9354602d54a7d5656a667e8c8ad82abef379 Mon Sep 17 00:00:00 2001 From: James Cole Date: Thu, 11 Sep 2014 15:19:07 +0200 Subject: [PATCH] Better feedback. --- app/controllers/MigrateController.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/app/controllers/MigrateController.php b/app/controllers/MigrateController.php index b773793399..082e854a63 100644 --- a/app/controllers/MigrateController.php +++ b/app/controllers/MigrateController.php @@ -30,7 +30,15 @@ class MigrateController extends BaseController // so now Firefly pushes something in a queue and does something with it! Yay! \Log::debug('Pushed a job to start the import.'); Queue::push('Firefly\Queue\Import@start', ['file' => $fullName, 'user' => \Auth::user()->id]); - Session::flash('success', 'The import job has been queued. Please be patient. Data will appear'); + if (Config::get('queue.default') == 'sync') { + Session::flash('success', 'Your data has been imported!'); + } else { + Session::flash( + 'success', + 'The import job has been queued. Please be patient. Data will appear slowly. Please be patient.' + ); + } + return Redirect::route('index'); } Session::flash('error', 'Could not save file to storage.');