mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-08 13:30:02 +00:00
lint
This commit is contained in:
parent
92bce02f3c
commit
6c9754c967
@ -838,22 +838,22 @@ export class SplitTabComponent extends BaseTabComponent implements AfterViewInit
|
|||||||
}
|
}
|
||||||
|
|
||||||
tab.subscribeUntilDestroyed(
|
tab.subscribeUntilDestroyed(
|
||||||
this.observeUntilChildDetached(tab.titleChange$),
|
this.observeUntilChildDetached(tab, tab.titleChange$),
|
||||||
() => this.updateTitle(),
|
() => this.updateTitle(),
|
||||||
)
|
)
|
||||||
tab.subscribeUntilDestroyed(
|
tab.subscribeUntilDestroyed(
|
||||||
this.observeUntilChildDetached(tab.activity$),
|
this.observeUntilChildDetached(tab, tab.activity$),
|
||||||
a => a ? this.displayActivity() : this.clearActivity(),
|
a => a ? this.displayActivity() : this.clearActivity(),
|
||||||
)
|
)
|
||||||
tab.subscribeUntilDestroyed(
|
tab.subscribeUntilDestroyed(
|
||||||
this.observeUntilChildDetached(tab.progress$),
|
this.observeUntilChildDetached(tab, tab.progress$),
|
||||||
p => this.setProgress(p),
|
p => this.setProgress(p),
|
||||||
)
|
)
|
||||||
if (tab.title) {
|
if (tab.title) {
|
||||||
this.updateTitle()
|
this.updateTitle()
|
||||||
}
|
}
|
||||||
tab.subscribeUntilDestroyed(
|
tab.subscribeUntilDestroyed(
|
||||||
this.observeUntilChildDetached(tab.recoveryStateChangedHint$),
|
this.observeUntilChildDetached(tab, tab.recoveryStateChangedHint$),
|
||||||
() => {
|
() => {
|
||||||
this.recoveryStateChangedHint.next()
|
this.recoveryStateChangedHint.next()
|
||||||
},
|
},
|
||||||
@ -865,7 +865,7 @@ export class SplitTabComponent extends BaseTabComponent implements AfterViewInit
|
|||||||
|
|
||||||
private observeUntilChildDetached<T> (tab: BaseTabComponent, event: Observable<T>): Observable<T> {
|
private observeUntilChildDetached<T> (tab: BaseTabComponent, event: Observable<T>): Observable<T> {
|
||||||
return event.pipe(takeWhile(() => {
|
return event.pipe(takeWhile(() => {
|
||||||
this.getAllTabs().includes(tab)
|
return this.getAllTabs().includes(tab)
|
||||||
}))
|
}))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user