Skip to content

Commit

Permalink
correction in the brief ia modal
Browse files Browse the repository at this point in the history
  • Loading branch information
hichri-louay committed Oct 10, 2023
1 parent d8702ef commit becf7b3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
type="button"
class="btn-close pull-right close"
(click)="closeModalAi()"
[disabled]="isGenerating"
data-dismiss="modal"
aria-label="Close"
></button>
Expand Down Expand Up @@ -75,7 +76,7 @@ <h5 class="delete-token-modal-title mb-4">

<div *ngIf="isGenerating"

class="spinner-border text-light"
class="spinner-border text-primary"
role="status"
>
<span class="sr-only">Loading...</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit becf7b3

Please sign in to comment.