Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ngOnInit() {
- this.createForm();
- this.tipoIdentifacion$ = this._selects.getTipodeId();
- const url = `${ AppConfig.API_DOMAIN }:${ AppConfig.PORT }/${ ConfigAdmin.ZONE_PREFIX }/company/${ AppConfig.COMPANY_ID }/politic/current`;
- this._currentPolitic.getCurrentPolitic(url)
- .subscribe(data => {
- this.idPolitic = data.id;
- this.idFilePolitic = data.fileId;
- }, err => {
- this.textButton = 'GUARDAR';
- this.form.disable();
- console.error('No es posible recuperar la política activa');
- });
- }
Add Comment
Please, Sign In to add comment