Share primary currency to all pages.

This commit is contained in:
James Cole
2025-09-03 21:02:13 +02:00
parent 2a7bb6f048
commit 19e36f6f6e
2 changed files with 1 additions and 2 deletions

View File

@@ -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',

View File

@@ -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());