Make it easier to switch between v1/v2 layout.

This commit is contained in:
James Cole
2021-01-31 20:35:54 +01:00
parent fd8a59924d
commit ffe18c63a5
88 changed files with 176 additions and 176 deletions

View File

@@ -82,7 +82,7 @@ class AmountController extends Controller
$maxAmount = min($leftOnAccount, $leftToSave);
$currency = $this->accountRepos->getAccountCurrency($piggyBank->account) ?? app('amount')->getDefaultCurrency();
return view('piggy-banks.add', compact('piggyBank', 'maxAmount', 'currency'));
return prefixView('piggy-banks.add', compact('piggyBank', 'maxAmount', 'currency'));
}
/**
@@ -102,7 +102,7 @@ class AmountController extends Controller
$maxAmount = min($leftOnAccount, $leftToSave);
$currency = $this->accountRepos->getAccountCurrency($piggyBank->account) ?? app('amount')->getDefaultCurrency();
return view('piggy-banks.add-mobile', compact('piggyBank', 'maxAmount', 'currency'));
return prefixView('piggy-banks.add-mobile', compact('piggyBank', 'maxAmount', 'currency'));
}
/**
@@ -202,7 +202,7 @@ class AmountController extends Controller
$repetition = $this->piggyRepos->getRepetition($piggyBank);
$currency = $this->accountRepos->getAccountCurrency($piggyBank->account) ?? app('amount')->getDefaultCurrency();
return view('piggy-banks.remove', compact('piggyBank', 'repetition', 'currency'));
return prefixView('piggy-banks.remove', compact('piggyBank', 'repetition', 'currency'));
}
/**
@@ -217,6 +217,6 @@ class AmountController extends Controller
$repetition = $this->piggyRepos->getRepetition($piggyBank);
$currency = $this->accountRepos->getAccountCurrency($piggyBank->account) ?? app('amount')->getDefaultCurrency();
return view('piggy-banks.remove-mobile', compact('piggyBank', 'repetition', 'currency'));
return prefixView('piggy-banks.remove-mobile', compact('piggyBank', 'repetition', 'currency'));
}
}