onSave(payload) {
this.loading = true;
const addIdp = this.identityProviderService.save(payload);
this.autoUnsubscribe(addIdp.subscribe((data) => {
this.notificationsService.success(this.translateService.instant('idp.form.add-success'), '');
this.ref.close(data);
}, (error) => {
this.notificationsService.error(this.translateService.instant('idp.form.add-error'), '');
}, () => {
this.loading = false;
}));
}
identityProviderService.save call has httpClient in it