mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-16 17:40:00 +00:00
21 lines
453 B
TypeScript
21 lines
453 B
TypeScript
import { Component, Input } from '@angular/core'
|
|
import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap'
|
|
|
|
/** @hidden */
|
|
@Component({
|
|
template: require('./safeModeModal.component.pug'),
|
|
})
|
|
export class SafeModeModalComponent {
|
|
@Input() error: Error
|
|
|
|
constructor (
|
|
public modalInstance: NgbActiveModal,
|
|
) {
|
|
this.error = window['safeModeReason']
|
|
}
|
|
|
|
close (): void {
|
|
this.modalInstance.dismiss()
|
|
}
|
|
}
|