mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -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']));
|
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]));
|
session()->flash('success', (string)trans('firefly.stored_journal', ['description' => $journal->description]));
|
||||||
app('preferences')->mark();
|
app('preferences')->mark();
|
||||||
|
|
||||||
|
@ -14,7 +14,17 @@
|
|||||||
<button type="button" class="close" data-dismiss="alert">
|
<button type="button" class="close" data-dismiss="alert">
|
||||||
<span>×</span><span class="sr-only">{{ 'close'|_ }}</span>
|
<span>×</span><span class="sr-only">{{ 'close'|_ }}</span>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
|
{% if session_has('success_uri') %}
|
||||||
|
<a href="{{ session('success_uri') }}">
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<strong>{{ 'flash_success'|_ }}</strong> {{ session('success') }}
|
<strong>{{ 'flash_success'|_ }}</strong> {{ session('success') }}
|
||||||
|
|
||||||
|
{% if session_has('success_uri') %}
|
||||||
|
</a>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user