mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-11-28 03:34:32 -06:00
Merge pull request #1624 from david-me/clickable-transaction-notifier
Can have link in success message to the transaction it refers to
This commit is contained in:
commit
024cf610a8
@ -369,6 +369,7 @@ class SingleController extends Controller
|
||||
|
||||
event(new StoredTransactionJournal($journal, $data['piggy_bank_id']));
|
||||
|
||||
session()->flash('success_uri', route('transactions.show', [$journal->id]));
|
||||
session()->flash('success', (string)trans('firefly.stored_journal', ['description' => $journal->description]));
|
||||
app('preferences')->mark();
|
||||
|
||||
|
@ -14,7 +14,17 @@
|
||||
<button type="button" class="close" data-dismiss="alert">
|
||||
<span>×</span><span class="sr-only">{{ 'close'|_ }}</span>
|
||||
</button>
|
||||
|
||||
{% if session_has('success_uri') %}
|
||||
<a href="{{ session('success_uri') }}">
|
||||
{% endif %}
|
||||
|
||||
<strong>{{ 'flash_success'|_ }}</strong> {{ session('success') }}
|
||||
|
||||
{% if session_has('success_uri') %}
|
||||
</a>
|
||||
{% endif %}
|
||||
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user