Fix broken installation state check
parent
254604d584
commit
d247f41da4
|
@ -32,18 +32,21 @@ class InitializingPage extends StatelessWidget {
|
||||||
if (cubit.state is ServerInstallationRecovery) {
|
if (cubit.state is ServerInstallationRecovery) {
|
||||||
return const RecoveryRouting();
|
return const RecoveryRouting();
|
||||||
} else {
|
} else {
|
||||||
final actualInitializingPage = [
|
Widget? actualInitializingPage;
|
||||||
() => _stepHetzner(cubit),
|
if (cubit.state is! ServerInstallationFinished) {
|
||||||
() => _stepCloudflare(cubit),
|
actualInitializingPage = [
|
||||||
() => _stepBackblaze(cubit),
|
() => _stepHetzner(cubit),
|
||||||
() => _stepDomain(cubit),
|
() => _stepCloudflare(cubit),
|
||||||
() => _stepUser(cubit),
|
() => _stepBackblaze(cubit),
|
||||||
() => _stepServer(cubit),
|
() => _stepDomain(cubit),
|
||||||
() => _stepCheck(cubit),
|
() => _stepUser(cubit),
|
||||||
() => _stepCheck(cubit),
|
() => _stepServer(cubit),
|
||||||
() => _stepCheck(cubit),
|
() => _stepCheck(cubit),
|
||||||
() => _stepCheck(cubit)
|
() => _stepCheck(cubit),
|
||||||
][cubit.state.progress.index]();
|
() => _stepCheck(cubit),
|
||||||
|
() => _stepCheck(cubit)
|
||||||
|
][cubit.state.progress.index]();
|
||||||
|
}
|
||||||
|
|
||||||
return BlocListener<ServerInstallationCubit, ServerInstallationState>(
|
return BlocListener<ServerInstallationCubit, ServerInstallationState>(
|
||||||
listener: (final context, final state) {
|
listener: (final context, final state) {
|
||||||
|
|
Loading…
Reference in New Issue