fix delete transaction flow

This commit is contained in:
hackerESQ
2024-08-30 20:58:00 -05:00
parent b13bb198d3
commit 2a42ce9d12
7 changed files with 109 additions and 66 deletions
@@ -85,7 +85,7 @@ new class extends Component {
$this->dispatch('transaction-saved');
$this->success(__('Transaction created'), redirectTo: route('portfolio.show', ['portfolio' => $this->portfolio->id]));
$this->success(__('Transaction created'), redirectTo: route('holding.show', ['portfolio' => $this->portfolio->id, 'symbol' => $this->symbol]));
}
public function delete()
@@ -93,7 +93,7 @@ new class extends Component {
$this->transaction->delete();
$this->success(__('Transaction deleted'), redirectTo: route('portfolio.show', ['portfolio' => $this->portfolio->id]));
$this->success(__('Transaction deleted'), redirectTo: route('holding.show', ['portfolio' => $this->portfolio->id, 'symbol' => $this->symbol]));
}
}; ?>