mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-08 21:40:03 +00:00
This commit is contained in:
parent
d736bdace4
commit
a1825bbbe6
@ -21,7 +21,7 @@ export class SelectorService {
|
|||||||
show <T> (name: string, options: SelectorOption<T>[]): Promise<T> {
|
show <T> (name: string, options: SelectorOption<T>[]): Promise<T> {
|
||||||
const modal = this.ngbModal.open(SelectorModalComponent)
|
const modal = this.ngbModal.open(SelectorModalComponent)
|
||||||
this.current = modal
|
this.current = modal
|
||||||
modal.result.then(() => {
|
modal.result.finally(() => {
|
||||||
this.current = null
|
this.current = null
|
||||||
})
|
})
|
||||||
const instance: SelectorModalComponent<T> = modal.componentInstance
|
const instance: SelectorModalComponent<T> = modal.componentInstance
|
||||||
|
Loading…
x
Reference in New Issue
Block a user