mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-10-31 18:54:58 +00:00 
			
		
		
		
	Make it easier to switch between v1/v2 layout.
This commit is contained in:
		| @@ -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')); | ||||
|     } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user