Expand create transaction

This commit is contained in:
Sander Dorigo
2026-08-20 11:18:36 +02:00
parent 3ab98c4c76
commit ff889714d7
15 changed files with 46 additions and 1109 deletions
@@ -32,6 +32,7 @@ use FireflyIII\Http\Requests\PreferencesRequest;
use FireflyIII\Models\Account;
use FireflyIII\Models\Preference;
use FireflyIII\Repositories\Account\AccountRepositoryInterface;
use FireflyIII\Support\Facades\AppConfiguration;
use FireflyIII\Support\Facades\Navigation;
use FireflyIII\Support\Facades\Preferences;
use FireflyIII\Support\Facades\Steam;
@@ -193,9 +194,12 @@ final class PreferencesController extends Controller
$ntfyPass = '';
}
$mapEnabled = true === AppConfiguration::get('enable_external_map', config('firefly.enable_external_map', false))->data;
return view('preferences.index', [
'anonymous' => $anonymous,
'language' => $language,
'mapEnabled' => $mapEnabled,
'pushoverAppToken' => $pushoverAppToken,
'pushoverUserToken' => $pushoverUserToken,
'ntfyServer' => $ntfyServer,
@@ -138,7 +138,7 @@ final class CreateController extends Controller
$optionalFields['external_url'] ??= false;
$optionalFields['location'] ??= false;
$optionalFields['location'] = $optionalFields['location']
&& true === AppConfiguration::get('enable_external_map', config('firefly.enable_external_map'))->data;
&& true === AppConfiguration::get('enable_external_map', config('firefly.enable_external_map', false))->data;
// map info:
$longitude = config('firefly.default_location.longitude');