🐛 remove admin component request
This commit is contained in:
parent
c45137ee79
commit
4ec9091233
|
@ -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);
|
||||||
}
|
// }
|
||||||
);
|
// );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue