fix: Fix some initializing errors
Correct progress index calculation and hardcore cloudflare loading until new providers for DNS are supportedpull/149/head
parent
899c84c54f
commit
29b0bf2397
|
@ -75,13 +75,12 @@ class ServerInstallationRepository {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (serverDomain != null && serverDomain.provider != DnsProvider.unknown) {
|
// No other DNS provider is supported for now, so it's fine.
|
||||||
ApiController.initDnsProviderApiFactory(
|
ApiController.initDnsProviderApiFactory(
|
||||||
DnsProviderApiFactorySettings(
|
DnsProviderApiFactorySettings(
|
||||||
provider: serverDomain.provider,
|
provider: DnsProvider.cloudflare,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
|
||||||
|
|
||||||
if (box.get(BNames.hasFinalChecked, defaultValue: false)) {
|
if (box.get(BNames.hasFinalChecked, defaultValue: false)) {
|
||||||
return ServerInstallationFinished(
|
return ServerInstallationFinished(
|
||||||
|
|
|
@ -48,7 +48,7 @@ abstract class ServerInstallationState extends Equatable {
|
||||||
|
|
||||||
bool get isFullyInitilized => _fulfilementList.every((final el) => el!);
|
bool get isFullyInitilized => _fulfilementList.every((final el) => el!);
|
||||||
ServerSetupProgress get progress => ServerSetupProgress
|
ServerSetupProgress get progress => ServerSetupProgress
|
||||||
.values[_fulfilementList.where((final el) => el!).length];
|
.values[_fulfilementList.where((final el) => el!).length + 1];
|
||||||
|
|
||||||
int get porgressBar {
|
int get porgressBar {
|
||||||
if (progress.index < 6) {
|
if (progress.index < 6) {
|
||||||
|
|
Loading…
Reference in New Issue