mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-20 03:08:11 +00:00
Share primary currency to all pages.
This commit is contained in:
@@ -135,7 +135,6 @@ class IndexController extends Controller
|
|||||||
|
|
||||||
// get all inactive budgets, and simply list them:
|
// get all inactive budgets, and simply list them:
|
||||||
$inactive = $this->repository->getInactiveBudgets();
|
$inactive = $this->repository->getInactiveBudgets();
|
||||||
$primaryCurrency = $this->primaryCurrency;
|
|
||||||
|
|
||||||
return view(
|
return view(
|
||||||
'budgets.index',
|
'budgets.index',
|
||||||
@@ -148,7 +147,6 @@ class IndexController extends Controller
|
|||||||
'budgets',
|
'budgets',
|
||||||
'currencies',
|
'currencies',
|
||||||
'periodTitle',
|
'periodTitle',
|
||||||
'primaryCurrency',
|
|
||||||
'activeDaysPassed',
|
'activeDaysPassed',
|
||||||
'activeDaysLeft',
|
'activeDaysLeft',
|
||||||
'inactive',
|
'inactive',
|
||||||
|
@@ -140,6 +140,7 @@ abstract class Controller extends BaseController
|
|||||||
View::share('language', $language);
|
View::share('language', $language);
|
||||||
View::share('locale', $locale);
|
View::share('locale', $locale);
|
||||||
View::share('convertToPrimary', $this->convertToPrimary);
|
View::share('convertToPrimary', $this->convertToPrimary);
|
||||||
|
View::share('primaryCurrency', $this->primaryCurrency);
|
||||||
View::share('shownDemo', $shownDemo);
|
View::share('shownDemo', $shownDemo);
|
||||||
View::share('current_route_name', $page);
|
View::share('current_route_name', $page);
|
||||||
View::share('original_route_name', Route::currentRouteName());
|
View::share('original_route_name', Route::currentRouteName());
|
||||||
|
Reference in New Issue
Block a user