Merge remote-tracking branch 'origin/main' into feature/new-folder-structure

This commit is contained in:
Niels Lyngsø
2022-06-02 14:29:02 +02:00
2 changed files with 3 additions and 3 deletions

View File

@@ -8,7 +8,7 @@ export class UmbInstallerContext {
email: '',
password: '',
subscribeToNewsletter: false,
telemetryLevel: 'Minimal',
telemetryLevel: 'Basic',
database: {},
});
public readonly data: Observable<PostInstallRequest> = this._data.asObservable();
@@ -39,7 +39,6 @@ export class UmbInstallerContext {
private loadIntallerSettings() {
getInstall({}).then(({ data }) => {
this._settings.next(data);
console.log('INSTALLER SETTINGS', data);
});
}
}

View File

@@ -20,11 +20,12 @@ export class UmbInstallerInstalling extends LitElement {
}
private async _updateProgress() {
this._installProgress = Math.min(this._installProgress, (Math.random() + 1) * 10, 100);
this._installProgress = Math.min(this._installProgress + (Math.random() + 1) * 10, 100);
await new Promise((resolve) => setTimeout(resolve, (Math.random() + 1) * 1000));
if (this._installProgress >= 100) {
// Redirect to backoffice
history.pushState(null, '', '/backoffice/backoffice');
return;
}