];
observableForkJoin(observables).subscribe(
(resp: object) => {
- this.moduleEnabled = resp[1]['enabled'];
+ const configResp = resp[1];
+ this.moduleEnabled = configResp['enabled'];
+ this.sendToUrl = configResp['url'];
+ this.sendToDeviceUrl = configResp['device_url'];
this.options = _.pick(resp[0], this.requiredFields);
- const configs = _.pick(resp[1], this.requiredFields);
+ const configs = _.pick(configResp, this.requiredFields);
this.createConfigForm();
this.configForm.setValue(configs);
- this.loading = false;
+ this.loadingReady();
},
(_error) => {
- this.error = true;
+ this.loadingError();
}
);
}