diff --git a/app/views/install/installer.phtml b/app/views/install/installer.phtml index db97dc7bdb..a469d2be9d 100644 --- a/app/views/install/installer.phtml +++ b/app/views/install/installer.phtml @@ -19,9 +19,9 @@ if ($installMode === 'mock' && $defaultEmailCertificates === '') { } $step = isset($_GET['step']) ? (int) $_GET['step'] : 1; -$step = max(1, min(4, $step)); -if ($isUpgrade && $step === 2) { - $step = 3; +$step = max(1, min(5, $step)); +if ($isUpgrade && ($step === 2 || $step === 3)) { + $step = 4; } $partialFile = __DIR__ . "/installer/templates/steps/step-{$step}.phtml"; @@ -34,7 +34,7 @@ if (isset($_GET['partial'])) { exit; } -$cardStep = min(3, $step); +$cardStep = min(4, $step); $stepFile = __DIR__ . "/installer/templates/steps/step-{$cardStep}.phtml"; if (!is_file($stepFile)) { $stepFile = __DIR__ . "/installer/templates/steps/step-1.phtml"; @@ -43,6 +43,8 @@ $cssVersion = @filemtime(__DIR__ . '/installer/css/styles.css') ?: time(); $tooltipsVersion = @filemtime(__DIR__ . '/installer/js/tooltips.js') ?: time(); $constantsVersion = @filemtime(__DIR__ . '/installer/js/constants.js') ?: time(); $stepsContextVersion = @filemtime(__DIR__ . '/installer/js/modules/context.js') ?: time(); +$mockModuleVersion = @filemtime(__DIR__ . '/installer/js/modules/mock.js') ?: time(); +$mockControlsVersion = @filemtime(__DIR__ . '/installer/js/modules/mock-controls.js') ?: time(); $stepsStateVersion = @filemtime(__DIR__ . '/installer/js/modules/state.js') ?: time(); $stepsValidationVersion = @filemtime(__DIR__ . '/installer/js/modules/validation.js') ?: time(); $stepsUiVersion = @filemtime(__DIR__ . '/installer/js/modules/ui.js') ?: time(); @@ -64,6 +66,10 @@ $installerVersion = @filemtime(__DIR__ . '/installer/js/installer.js') ?: time() + + + + @@ -127,6 +133,10 @@ $installerVersion = @filemtime(__DIR__ . '/installer/js/installer.js') ?: time() + + + + + +

Adjust mock responses for this session.

+ +
+
+
+

Simulate session expiry

+

Show the toast error before install starts.

+
+ +
+
+
+

Simulate install error

+

Show a failed step and retry flow.

+
+ +
+
+
+

Simulate account error

+

Fail the account creation step.

+
+ +
+
+ + + +