Feat: Adds multi currency to imports and exports (#89)

* Also adds ability for user to export configurations
This commit is contained in:
hackerESQ
2025-04-10 20:47:35 -05:00
committed by GitHub
parent eae345f243
commit 1ef8dd9378
23 changed files with 445 additions and 77 deletions
@@ -89,13 +89,13 @@ new class extends Component
<x-slot name="description">
{{ __('Upload or recover your Investbrain portfolio and holdings.') }}
<span class="text-xs text-secondary"><a href="#" title="{{ __('Click to download import template.') }}" @click="$wire.downloadTemplate()"> {{ __('Download import template.') }}</a></span>
</x-slot>
<x-slot:form>
<div class="col-span-6 sm:col-span-4">
<x-file wire:model="file" label="{{ __('Select a file') }}" hint="" accept=".xlsx" required />
<p class="mt-4 text-xs text-secondary leading-tight"><a href="#" title="{{ __('Click to download import template.') }}" @click="$wire.downloadTemplate()"> {{ __('Download import template.') }}</a></p>
</div>
<x-dialog-modal wire:model.live="importStatusDialog" persistent>
@@ -40,7 +40,7 @@ new class extends Component
$this->validate();
$this->user->options = array_merge($this->user->options ?? [], [
$this->user->setOption([
'locale' => $this->locale,
'display_currency' => $this->display_currency,
]);
@@ -51,7 +51,7 @@ new class extends Component
$this->dispatch('saved');
//$this->js('window.location.reload();');
// $this->js('window.location.reload();');
}
}; ?>
<x-forms.form-section submit="updateProfileInformation">