mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2025-03-14 10:44:11 +00:00
fix: Fix some initializing errors
Correct progress index calculation and hardcore cloudflare loading until new providers for DNS are supported
This commit is contained in:
parent
899c84c54f
commit
29b0bf2397
2 changed files with 7 additions and 8 deletions
|
@ -75,13 +75,12 @@ class ServerInstallationRepository {
|
|||
);
|
||||
}
|
||||
|
||||
if (serverDomain != null && serverDomain.provider != DnsProvider.unknown) {
|
||||
ApiController.initDnsProviderApiFactory(
|
||||
DnsProviderApiFactorySettings(
|
||||
provider: serverDomain.provider,
|
||||
),
|
||||
);
|
||||
}
|
||||
// No other DNS provider is supported for now, so it's fine.
|
||||
ApiController.initDnsProviderApiFactory(
|
||||
DnsProviderApiFactorySettings(
|
||||
provider: DnsProvider.cloudflare,
|
||||
),
|
||||
);
|
||||
|
||||
if (box.get(BNames.hasFinalChecked, defaultValue: false)) {
|
||||
return ServerInstallationFinished(
|
||||
|
|
|
@ -48,7 +48,7 @@ abstract class ServerInstallationState extends Equatable {
|
|||
|
||||
bool get isFullyInitilized => _fulfilementList.every((final el) => el!);
|
||||
ServerSetupProgress get progress => ServerSetupProgress
|
||||
.values[_fulfilementList.where((final el) => el!).length];
|
||||
.values[_fulfilementList.where((final el) => el!).length + 1];
|
||||
|
||||
int get porgressBar {
|
||||
if (progress.index < 6) {
|
||||
|
|
Loading…
Add table
Reference in a new issue