mirror of
https://github.com/Eugeny/tabby.git
synced 2024-09-11 13:13:59 +03:00
fixed duplicate multiline-paste prompts
This commit is contained in:
parent
5d8ff72850
commit
3f160eee46
@ -226,7 +226,6 @@ export abstract class BaseTabComponent extends BaseComponent {
|
|||||||
this.destroyed.next()
|
this.destroyed.next()
|
||||||
}
|
}
|
||||||
this.destroyed.complete()
|
this.destroyed.complete()
|
||||||
this.hostView.destroy()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @hidden */
|
/** @hidden */
|
||||||
|
@ -767,10 +767,10 @@ export class SplitTabComponent extends BaseTabComponent implements AfterViewInit
|
|||||||
}
|
}
|
||||||
|
|
||||||
destroy (): void {
|
destroy (): void {
|
||||||
super.destroy()
|
|
||||||
for (const x of this.getAllTabs()) {
|
for (const x of this.getAllTabs()) {
|
||||||
x.destroy()
|
x.destroy()
|
||||||
}
|
}
|
||||||
|
super.destroy()
|
||||||
}
|
}
|
||||||
|
|
||||||
layout (): void {
|
layout (): void {
|
||||||
|
@ -37,6 +37,7 @@ export class TabsService {
|
|||||||
const componentRef = componentFactory.create(this.injector)
|
const componentRef = componentFactory.create(this.injector)
|
||||||
const tab = componentRef.instance
|
const tab = componentRef.instance
|
||||||
tab.hostView = componentRef.hostView
|
tab.hostView = componentRef.hostView
|
||||||
|
tab.destroyed$.subscribe(() => componentRef.destroy())
|
||||||
Object.assign(tab, params.inputs ?? {})
|
Object.assign(tab, params.inputs ?? {})
|
||||||
return tab
|
return tab
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user