in frontend/src/app/content-creator/service/add-service/add-service.component.ts [197:214]
async generateTitleDescription() {
if (this.labels || this.categories || this.features) {
this.loading = true;
this.isTitleGenerated = true;
this.creatorService.generateTitleDescription(
this.labels.concat(this.categories, this.features), `User title for the service: ${this.firstFormGroup.value.firstCtrl} \n User description for the service: ${this.firstFormGroup.value.firstCtrl}`
).subscribe((res: any) => {
this.title = res.title;
this.description = res.description;
this.loading = false;
this.stepper.next();
this.secondFormGroup.setValue({
thirdCtrl: this.title,
fourthCtrl: this.description,
})
});
}
}