alessio22

Untitled

Jan 18th, 2019
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. set_field_to_true(partecipant){
  2.  
  3. this.partecipantService.set_obtain_hard_skill_to_true(this.authenticationService,partecipant.id).then(function(result) {
  4. if(result["status"]=="success"){
  5. partecipant.field=true
  6. }
  7. console.log("bella");
  8. });
  9. console.log("ciao");
  10. }
  11.  
  12.  
  13.  
  14. async set_obtain_hard_skill_to_true(authenticationService,id_partecipant){
  15. this.authenticationService=authenticationService;
  16. let url_request=this.authenticationService.url_application+"blbla";
  17. let params={tcode: "blblblbl", id: id_partecipant};
  18. let http_post_ajax_filter_by_tcode_and_get_eval_data64=this.http.post(url_request,params,{ headers: new HttpHeaders({"auth-token":this.authenticationService.token})});
  19. let data_post=await http_post_ajax_filter_by_tcode_and_get_eval_data64.toPromise();
  20. return data_post;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment