in frontend/src/app/content-creator/service/add-service/add-service.component.ts [216:235]
saveService() {
if (this.imagesURLs && this.title && this.description) {
this.loading = true;
this.isSaved = true;
const service: Service = {
title: this.secondFormGroup.value.thirdCtrl,
description: this.secondFormGroup.value.fourthCtrl,
image_urls: this.imagesURLs,
labels: this.labels,
categories: this.categories,
features: this.features
}
this.creatorService.saveService(this.userId, service).subscribe((res: HttpResponse<string>) => {
if (res.status == HttpStatusCode.Ok) {
this.loading = false;
this.stepper.next();
}
});
}
}