Skip to content

Commit

Permalink
Call redirect on presenters (#193)
Browse files Browse the repository at this point in the history
Missed this in #143
  • Loading branch information
spaze authored Aug 9, 2023
2 parents 28c5e89 + bdf3e6b commit 2a5b922
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion site/app/Interviews/InterviewInputs.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ protected function createComponentInterview(): Form
return $this->interviewFormFactory->create(
function (): never {
$this->flashMessage($this->interview ? 'Rozhovor upraven' : 'Rozhovor přidán');
$this->redirect('Interviews:');
$this->getPresenter()->redirect('Interviews:');
},
$this->interview,
);
Expand Down
2 changes: 1 addition & 1 deletion site/app/Talks/TalkInputs.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ protected function createComponentTalk(): Form
return $this->talkFormFactory->create(
function (Html $message): never {
$this->flashMessage($message);
$this->redirect('Talks:');
$this->getPresenter()->redirect('Talks:');
},
$this->talk,
);
Expand Down
2 changes: 1 addition & 1 deletion site/app/Training/Dates/TrainingDateInputs.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ protected function createComponentDate(): Form
{
return $this->trainingDateFormFactory->create(
function (): never {
$this->redirect('Trainings:');
$this->getPresenter()->redirect('Trainings:');
},
function (): never {
$this->flashMessage('Termín upraven');
Expand Down

0 comments on commit 2a5b922

Please sign in to comment.