fix intro
continuous-integration/drone/push Build is passing Details

master
Maxence JOUANNET 2 days ago
parent 9f3507ed49
commit f808aa5f93

@ -48,8 +48,8 @@ export class IntroService {
disableInteraction: true,
});
intro.onstart(async (element) => {
this.navbarService.toggleNavbar();
intro.onstart(async () => {
this.navbarService.onpenNavbar();
await this.sleep(100);
});
@ -128,7 +128,7 @@ export class IntroService {
intro.oncomplete(() => {
this.modalService.closeModal('friend-modal');
this.navbarService.toggleNavbar();
this.navbarService.closeNavbar();
resolve();
});

@ -18,4 +18,12 @@ export class NavbarService {
toggleNavbar(): void {
this.isNavbarOpenSubject.next(!this.isNavbarOpenSubject.value);
}
onpenNavbar(): void {
this.isNavbarOpenSubject.next(true);
}
closeNavbar(): void {
this.isNavbarOpenSubject.next(false);
}
}
Loading…
Cancel
Save