mirror of
https://github.com/eugeny/tabby
synced 2026-08-18 03:46:50 +00:00
20 lines
432 B
TypeScript
20 lines
432 B
TypeScript
import { Component, Input } from '@angular/core'
|
|
import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap'
|
|
|
|
@Component({
|
|
template: require('./safeModeModal.component.pug'),
|
|
})
|
|
export class SafeModeModalComponent {
|
|
@Input() error: Error
|
|
|
|
constructor (
|
|
public modalInstance: NgbActiveModal,
|
|
) {
|
|
this.error = window['safeModeReason']
|
|
}
|
|
|
|
close () {
|
|
this.modalInstance.dismiss()
|
|
}
|
|
}
|