Skip to content

Commit

Permalink
feat: dispatch event on report saved
Browse files Browse the repository at this point in the history
  • Loading branch information
dsouza95 committed Oct 1, 2024
1 parent 0e10020 commit 0bafaa9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/syncfusion/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,6 @@ export class IaraSyncfusionAdapter
protected _styleManager: IaraSyncfusionStyleManager;

public defaultFormat: CharacterFormatProperties = {};
public timeoutToSave: ReturnType<typeof setTimeout> | undefined;

public get contentManager(): IaraSyncfusionEditorContentManager {
return this._contentManager;
}
Expand Down Expand Up @@ -553,6 +551,7 @@ export class IaraSyncfusionAdapter

await this._updateReport(content[0], content[1]);
this._footerBarManager.updateSavingReportStatus("success");
dispatchEvent(new CustomEvent("IaraOnSaveReport"));
} catch {
this._footerBarManager.updateSavingReportStatus("error");
}
Expand Down

0 comments on commit 0bafaa9

Please sign in to comment.