tab renaming (fixes #19)

This commit is contained in:
Eugene Pankov
2017-07-15 19:11:49 +02:00
parent e64126af37
commit 60ce10d1e3
4 changed files with 32 additions and 1 deletions

View File

@@ -22,6 +22,9 @@ export class TabHeaderComponent {
@HostListener('dblclick') onDoubleClick (): void {
let modal = this.ngbModal.open(RenameTabModalComponent)
modal.componentInstance.value = this.tab.customTitle || this.tab.title
modal.result.then(result => {
this.tab.customTitle = result
}).catch(() => null)
}
@HostListener('auxclick', ['$event']) onAuxClick ($event: MouseEvent): void {