Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugeny committed Jul 18, 2024
1 parent 92bce02 commit 6c9754c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tabby-core/src/components/splitTab.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -838,22 +838,22 @@ export class SplitTabComponent extends BaseTabComponent implements AfterViewInit
}

tab.subscribeUntilDestroyed(
this.observeUntilChildDetached(tab.titleChange$),
this.observeUntilChildDetached(tab, tab.titleChange$),
() => this.updateTitle(),
)
tab.subscribeUntilDestroyed(
this.observeUntilChildDetached(tab.activity$),
this.observeUntilChildDetached(tab, tab.activity$),
a => a ? this.displayActivity() : this.clearActivity(),
)
tab.subscribeUntilDestroyed(
this.observeUntilChildDetached(tab.progress$),
this.observeUntilChildDetached(tab, tab.progress$),
p => this.setProgress(p),
)
if (tab.title) {
this.updateTitle()
}
tab.subscribeUntilDestroyed(
this.observeUntilChildDetached(tab.recoveryStateChangedHint$),
this.observeUntilChildDetached(tab, tab.recoveryStateChangedHint$),
() => {
this.recoveryStateChangedHint.next()
},
Expand All @@ -865,7 +865,7 @@ export class SplitTabComponent extends BaseTabComponent implements AfterViewInit

private observeUntilChildDetached<T> (tab: BaseTabComponent, event: Observable<T>): Observable<T> {
return event.pipe(takeWhile(() => {
this.getAllTabs().includes(tab)
return this.getAllTabs().includes(tab)
}))
}

Expand Down

0 comments on commit 6c9754c

Please sign in to comment.