]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/modal/welcome-modal.component.ts
Merge branch 'pr/2629' into develop
[github/Chocobozzz/PeerTube.git] / client / src / app / modal / welcome-modal.component.ts
index 05412a4cdb2060590704b4cbb8230869d24de690..e022776e37b77dbfcd059484eddf1a063b25e5c3 100644 (file)
@@ -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.'),