Add welcome modal
[oweals/peertube.git] / client / src / app / modal / instance-config-warning-modal.component.ts
1 import { Component, ElementRef, ViewChild } from '@angular/core'
2 import { Notifier } from '@app/core'
3 import { I18n } from '@ngx-translate/i18n-polyfill'
4 import { NgbModal } from '@ng-bootstrap/ng-bootstrap'
5
6 @Component({
7   selector: 'my-instance-config-warning-modal',
8   templateUrl: './instance-config-warning-modal.component.html',
9   styleUrls: [ './instance-config-warning-modal.component.scss' ]
10 })
11 export class InstanceConfigWarningModalComponent {
12   @ViewChild('modal', { static: true }) modal: ElementRef
13
14   constructor (
15     private modalService: NgbModal,
16     private notifier: Notifier,
17     private i18n: I18n
18   ) { }
19
20   show () {
21     this.modalService.open(this.modal)
22   }
23 }