mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-16 09:29:59 +00:00
23 lines
485 B
TypeScript
23 lines
485 B
TypeScript
import { Component, Input } from '@angular/core'
|
|
import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap'
|
|
|
|
@Component({
|
|
selector: 'rename-tab-modal',
|
|
template: require('./renameTabModal.component.pug'),
|
|
})
|
|
export class RenameTabModalComponent {
|
|
@Input() value: string
|
|
|
|
constructor (
|
|
private modalInstance: NgbActiveModal
|
|
) { }
|
|
|
|
save () {
|
|
this.modalInstance.close(this.value)
|
|
}
|
|
|
|
close () {
|
|
this.modalInstance.dismiss()
|
|
}
|
|
}
|