diff --git a/src/cozy/services/installation-guard.service.ts b/src/cozy/services/installation-guard.service.ts index b148558f6..9dbfa3294 100644 --- a/src/cozy/services/installation-guard.service.ts +++ b/src/cozy/services/installation-guard.service.ts @@ -32,7 +32,12 @@ export class VaultInstallationService { } } - setIsInstalled() { + async completeVaultConfiguration() { + const client = this.clientService.GetClient(); + await client.stackClient.fetchJSON( + 'POST', + '/settings/vault' + ); this.userFinishedInstallation = true; } } diff --git a/src/cozy/wrappers/installation-page/installation-page.component.ts b/src/cozy/wrappers/installation-page/installation-page.component.ts index d7d402df0..c02524d24 100644 --- a/src/cozy/wrappers/installation-page/installation-page.component.ts +++ b/src/cozy/wrappers/installation-page/installation-page.component.ts @@ -84,8 +84,8 @@ export class InstallationPageComponent extends AngularWrapperComponent implement /* Props Bindings */ /******************/ - protected onSkipExtension() { - this.vaultInstallationService.setIsInstalled(); + protected async onSkipExtension() { + await this.vaultInstallationService.completeVaultConfiguration(); this.messagingService.send('installed'); }