mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-08-26 21:27:44 -05:00
Expand create transaction
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user