import { Component, ElementRef, ViewChild } from '@angular/core'
-import { Notifier } from '@app/core'
+import { Notifier, UserService } from '@app/core'
import { NgbModal } from '@ng-bootstrap/ng-bootstrap'
-import { UserService } from '@app/shared'
@Component({
selector: 'my-welcome-modal',
) { }
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.'),