🐛 remove admin component request

This commit is contained in:
tykayn 2020-04-25 12:54:56 +02:00
parent c45137ee79
commit 4ec9091233
2 changed files with 1455 additions and 616 deletions

View File

@ -45,17 +45,17 @@ export class AdminComponent implements OnInit {
const headers = this.utils.makeHeaders({ token: token }); const headers = this.utils.makeHeaders({ token: token });
this.config.loading = true; this.config.loading = true;
// store it in the poll property here // store it in the poll property here
this.http.get(`${environment.baseApiHref}/admin/${token}`, headers).subscribe( // this.http.get(`${environment.baseApiHref}/admin/${token}`, headers).subscribe(
(res: any) => { // (res: any) => {
console.log('res', res); // console.log('res', res);
this.config.updateCurrentPollFromResponse(res); // this.config.updateCurrentPollFromResponse(res);
this.config.loading = false; // this.config.loading = false;
}, // },
(e) => { // (e) => {
// handle need for a password // // handle need for a password
console.log('e', e); // console.log('e', e);
this.config.handleError(e); // this.config.handleError(e);
} // }
); // );
} }
} }

2047
yarn.lock

File diff suppressed because it is too large Load Diff