mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-12 07:29:59 +00:00

New standard theme that follows your chosen terminal colors, Bootstrap 5 & Angular 15 upgrade
33 lines
789 B
TypeScript
33 lines
789 B
TypeScript
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
|
|
import { Component, Input, ElementRef, ViewChild } from '@angular/core'
|
|
import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap'
|
|
|
|
/** @hidden */
|
|
@Component({
|
|
selector: 'rename-tab-modal',
|
|
templateUrl:'./renameTabModal.component.pug',
|
|
})
|
|
export class RenameTabModalComponent {
|
|
@Input() value: string
|
|
@ViewChild('input') input: ElementRef
|
|
|
|
constructor (
|
|
private modalInstance: NgbActiveModal,
|
|
) { }
|
|
|
|
ngOnInit () {
|
|
setTimeout(() => {
|
|
this.input.nativeElement.focus()
|
|
this.input.nativeElement.select()
|
|
}, 250)
|
|
}
|
|
|
|
save () {
|
|
this.modalInstance.close(this.value)
|
|
}
|
|
|
|
close () {
|
|
this.modalInstance.dismiss()
|
|
}
|
|
}
|