mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Move some stuff over to AJAX thing.
This commit is contained in:
@@ -75,12 +75,24 @@ class Range
|
||||
|
||||
// set view variables.
|
||||
$this->configureView();
|
||||
|
||||
// set more view variables:
|
||||
$this->configureList();
|
||||
}
|
||||
|
||||
return $theNext($request);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private function configureList()
|
||||
{
|
||||
$pref = Preferences::get('list-length', config('firefly.list_length', 10))->data;
|
||||
View::share('listLength', $pref);
|
||||
}
|
||||
|
||||
private function configureView()
|
||||
{
|
||||
$pref = Preferences::get('language', config('firefly.default_language', 'en_US'));
|
||||
|
||||
Reference in New Issue
Block a user