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