mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-19 21:03:17 -07:00
chore(wizard): ♻️ Set the state when saving the wizard
This commit is contained in:
parent
33b8d1111a
commit
033fa52fac
1 changed files with 3 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
|||
import { AfterViewInit, Component, OnInit, ViewChild } from "@angular/core";
|
||||
import { IdentityService, NotificationService, SettingsService } from "../../services";
|
||||
|
||||
import { CustomizationFacade } from "../../state/customization/customization.facade";
|
||||
import { ICreateWizardUser } from "../../interfaces";
|
||||
import { IOmbiConfigModel } from "../models/OmbiConfigModel";
|
||||
import { MatHorizontalStepper } from'@angular/material/stepper';
|
||||
|
@ -19,7 +20,7 @@ export class WelcomeComponent implements OnInit {
|
|||
|
||||
constructor(private router: Router, private identityService: IdentityService,
|
||||
private notificationService: NotificationService, private WizardService: WizardService,
|
||||
private settingsService: SettingsService) { }
|
||||
private settingsService: SettingsService, private customizationFacade: CustomizationFacade) { }
|
||||
|
||||
public ngOnInit(): void {
|
||||
this.localUser = {
|
||||
|
@ -55,6 +56,7 @@ export class WelcomeComponent implements OnInit {
|
|||
if(config != null) {
|
||||
this.identityService.createWizardUser(this.localUser).subscribe(x => {
|
||||
if (x.result) {
|
||||
this.customizationFacade.loadCustomziationSettings().subscribe();
|
||||
// save the config
|
||||
this.router.navigate(["login"]);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue