Guest User

Untitled

a guest
Oct 11th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. ngOnInit() {
  2. this.createForm();
  3. this.tipoIdentifacion$ = this._selects.getTipodeId();
  4. const url = `${ AppConfig.API_DOMAIN }:${ AppConfig.PORT }/${ ConfigAdmin.ZONE_PREFIX }/company/${ AppConfig.COMPANY_ID }/politic/current`;
  5. this._currentPolitic.getCurrentPolitic(url)
  6. .subscribe(data => {
  7. this.idPolitic = data.id;
  8. this.idFilePolitic = data.fileId;
  9. }, err => {
  10. this.textButton = 'GUARDAR';
  11. this.form.disable();
  12. console.error('No es posible recuperar la política activa');
  13. });
  14. }
Add Comment
Please, Sign In to add comment