(filter: (send: SendView) => boolean = null)
| 107 | } |
| 108 | |
| 109 | async load(filter: (send: SendView) => boolean = null) { |
| 110 | this.loading = true; |
| 111 | this.sendService.sendViews$ |
| 112 | .pipe( |
| 113 | mergeMap(async (sends) => { |
| 114 | this.sends = sends; |
| 115 | await this.search(null); |
| 116 | }), |
| 117 | takeUntil(this.destroy$), |
| 118 | ) |
| 119 | .subscribe(); |
| 120 | if (this.onSuccessfulLoad != null) { |
| 121 | await this.onSuccessfulLoad(); |
| 122 | } else { |
| 123 | // Default action |
| 124 | this.selectAll(); |
| 125 | } |
| 126 | this.loading = false; |
| 127 | this.loaded = true; |
| 128 | } |
| 129 | |
| 130 | async reload(filter: (send: SendView) => boolean = null) { |
| 131 | this.loaded = false; |
no test coverage detected