mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-04 15:26:43 +02:00
refactor: harmonize redirects after submitting forms
go back to form after submitting an edit form
This commit is contained in:
parent
6e9451a110
commit
d0cb964b0f
36 changed files with 179 additions and 57 deletions
|
|
@ -134,7 +134,10 @@ class SoundbiteController extends BaseController
|
|||
->with('errors', $clipModel->errors());
|
||||
}
|
||||
|
||||
return redirect()->route('soundbites-list', [$this->podcast->id, $this->episode->id]);
|
||||
return redirect()->route('soundbites-list', [$this->podcast->id, $this->episode->id])->with(
|
||||
'message',
|
||||
lang('Soundbite.messages.createSuccess')
|
||||
);
|
||||
}
|
||||
|
||||
public function delete(string $soundbiteId): RedirectResponse
|
||||
|
|
@ -158,6 +161,9 @@ class SoundbiteController extends BaseController
|
|||
}
|
||||
}
|
||||
|
||||
return redirect()->route('soundbites-list', [$this->podcast->id, $this->episode->id]);
|
||||
return redirect()->route('soundbites-list', [$this->podcast->id, $this->episode->id])->with(
|
||||
'message',
|
||||
lang('Soundbite.messages.deleteSuccess')
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue