diff --git a/src/app/campaigns/components/draft-campaign-presentation/draft-campaign-presentation.component.html b/src/app/campaigns/components/draft-campaign-presentation/draft-campaign-presentation.component.html index f89548bc0..1e52d3bbe 100755 --- a/src/app/campaigns/components/draft-campaign-presentation/draft-campaign-presentation.component.html +++ b/src/app/campaigns/components/draft-campaign-presentation/draft-campaign-presentation.component.html @@ -35,6 +35,7 @@ type="button" class="btn-close pull-right close" (click)="closeModalAi()" + [disabled]="isGenerating" data-dismiss="modal" aria-label="Close" > @@ -75,7 +76,7 @@
Loading... diff --git a/src/app/campaigns/components/draft-campaign-presentation/draft-campaign-presentation.component.ts b/src/app/campaigns/components/draft-campaign-presentation/draft-campaign-presentation.component.ts index ce58012c5..d16961864 100755 --- a/src/app/campaigns/components/draft-campaign-presentation/draft-campaign-presentation.component.ts +++ b/src/app/campaigns/components/draft-campaign-presentation/draft-campaign-presentation.component.ts @@ -120,13 +120,15 @@ closeModal(content: any) { } openModalAi(){ + this.isGenerating = false; + this.form.get('titles')?.setValue(''); this.modalService.open(this.iaModal, { - backdrop: true, + backdrop: 'static', keyboard: false }); } closeModalAi() { - this.closeModal(this.iaModal); + this.closeModal(this.iaModal); } ngOnInit(): void { this.saveForm();