mirror of
https://github.com/Eugeny/tabby
synced 2024-12-13 23:02:41 +00:00
expose sessionChanged$
This commit is contained in:
parent
975b5a117d
commit
0c963dcbcc
1 changed files with 4 additions and 0 deletions
|
@ -90,6 +90,7 @@ export class BaseTerminalTabComponent extends BaseTabComponent implements OnInit
|
|||
|
||||
protected logger: Logger
|
||||
protected output = new Subject<string>()
|
||||
protected sessionChanged = new Subject<BaseSession|null>()
|
||||
private sessionCloseSubscription: Subscription
|
||||
private hotkeysSubscription: Subscription
|
||||
private bellPlayer: HTMLAudioElement
|
||||
|
@ -122,6 +123,8 @@ export class BaseTerminalTabComponent extends BaseTabComponent implements OnInit
|
|||
|
||||
get frontendReady$ (): Observable<void> { return this.frontendReady }
|
||||
|
||||
get sessionChanged$ (): Observable<BaseSession|null> { return this.sessionChanged }
|
||||
|
||||
constructor (protected injector: Injector) {
|
||||
super()
|
||||
|
||||
|
@ -581,6 +584,7 @@ export class BaseTerminalTabComponent extends BaseTabComponent implements OnInit
|
|||
this.detachSessionHandlers()
|
||||
this.session = null
|
||||
}
|
||||
this.sessionChanged.next(session)
|
||||
}
|
||||
|
||||
protected attachSessionHandler (subscription: Subscription): void {
|
||||
|
|
Loading…
Reference in a new issue