Skip to content

Commit

Permalink
feat: connect success update redirect to post update page
Browse files Browse the repository at this point in the history
  • Loading branch information
ga-devfront committed Nov 26, 2024
1 parent 0aaaf4d commit e255d45
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@

namespace PrestaShop\Module\AutoUpgrade\Controller;

use PrestaShop\Module\AutoUpgrade\Router\Routes;
use PrestaShop\Module\AutoUpgrade\Twig\UpdateSteps;

class UpdatePagePostUpdateController extends AbstractPageWithStepController
{
const CURRENT_STEP = UpdateSteps::STEP_POST_UPDATE;
const CURRENT_PAGE = 'update';

protected function getPageTemplate(): string
{
Expand All @@ -44,6 +44,11 @@ protected function getStepTemplate(): string
return self::CURRENT_STEP;
}

protected function displayRouteInUrl(): ?string
{
return Routes::UPDATE_PAGE_POST_UPDATE;
}

/**
* @return array
*
Expand Down
2 changes: 1 addition & 1 deletion views/templates/components/progress-tracker.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
class="progress-tracker"
data-component="progress-tracker"
{% if successRoute is defined %}
data-sucess-route="{{ successRoute }}"
data-success-route="{{ successRoute }}"
{% endif %}
>
<div class="log-progress">
Expand Down

0 comments on commit e255d45

Please sign in to comment.