Skip to content

Commit

Permalink
✅ next button disabled after entering URL sitemap
Browse files Browse the repository at this point in the history
  • Loading branch information
dariodepa75 committed Mar 7, 2024
1 parent 1c2bb57 commit 1be771f
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,14 @@ export class ModalSiteMapComponent implements OnInit {

ngOnChanges(changes: SimpleChanges){
// console.log('ModalSiteMapComponent changes: ', changes);

if(this.listSitesOfSitemap.length > 0){
this.buttonDisabled = false;
this.listOfUrls = this.listSitesOfSitemap.join('\n');
// console.log('ModalSiteMapComponent listOfUrls: ', this.listOfUrls);
this.countSitemap = this.listSitesOfSitemap.length;
this.isSitemapLoaded = true;
} else {
this.buttonDisabled = true;
this.isSitemapLoaded = false;
}
}
Expand Down Expand Up @@ -83,13 +84,15 @@ export class ModalSiteMapComponent implements OnInit {
this.listOfUrls = "";
this.countSitemap = 0;
this.isSitemapLoaded = false;
this.buttonDisabled = false;
this.closeBaseModal.emit();
}

onSendSitemap(){
let body = {
'sitemap': this.kb.url
}
this.buttonDisabled = true;
this.sendSitemap.emit(body);
}

Expand Down

0 comments on commit 1be771f

Please sign in to comment.