Skip to content

Firefly III: a personal finances manager

Better feedback.

James Colec8dd9354602d
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.');