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

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