Skip to content

Commit

Permalink
debug: add save report logs
Browse files Browse the repository at this point in the history
  • Loading branch information
dsouza95 committed Jan 19, 2024
1 parent ca24a22 commit 944249f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/syncfusion/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ export class IaraSyncfusionAdapter
private async _saveReport(): Promise<void> {
const contentDate = new Date();
this._contentDate = contentDate;
console.log(`_saveReport`, contentDate);

const element = document.querySelector(".e-de-status-bar");
if (element) {
Expand All @@ -258,10 +259,13 @@ export class IaraSyncfusionAdapter
this._contentManager.getPlainTextContent(),
this._contentManager.getHtmlContent(),
]);
console.log(`_saveReport2`, contentDate, this._contentDate, content[0]);

if (contentDate !== this._contentDate) return;

await this._updateReport(content[0], content[1]);
this.savingReportSpan.innerText = "Salvo";
console.log(`_saveReport3`, contentDate, this._contentDate);
}

onTemplateSelectedAtShortCut(
Expand Down

0 comments on commit 944249f

Please sign in to comment.