MCPcopy Create free account
hub / github.com/bitwarden/clients / load

Method load

libs/angular/src/tools/send/send.component.ts:109–128  ·  view source on GitHub ↗
(filter: (send: SendView) => boolean = null)

Source from the content-addressed store, hash-verified

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;

Callers 2

reloadMethod · 0.95
removeAuthMethod · 0.95

Calls 3

searchMethod · 0.95
selectAllMethod · 0.95
subscribeMethod · 0.45

Tested by

no test coverage detected