X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fmodal%2Fwelcome-modal.component.ts;h=e022776e37b77dbfcd059484eddf1a063b25e5c3;hb=62068f4153cb1e67fe30a7f92947c3f2ec058c73;hp=05412a4cdb2060590704b4cbb8230869d24de690;hpb=8c559fad1e1c4c2ab7f1388c73200aa4c6256d74;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/modal/welcome-modal.component.ts b/client/src/app/modal/welcome-modal.component.ts index 05412a4cd..e022776e3 100644 --- a/client/src/app/modal/welcome-modal.component.ts +++ b/client/src/app/modal/welcome-modal.component.ts @@ -18,16 +18,15 @@ export class WelcomeModalComponent { ) { } show () { - const ref = this.modalService.open(this.modal,{ + this.modalService.open(this.modal, { + centered: true, backdrop: 'static', keyboard: false, size: 'lg' }) - - ref.result.finally(() => this.doNotOpenAgain()) } - private doNotOpenAgain () { + doNotOpenAgain () { this.userService.updateMyProfile({ noWelcomeModal: true }) .subscribe( () => console.log('We will not open the welcome modal again.'),