Dispatch pageLoaded event upon plug updates

This commit is contained in:
Zef Hemel
2023-05-24 06:47:39 +02:00
parent c27cd81271
commit 0e58f95920
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -469,6 +469,7 @@ export class Editor {
if (this.plugsUpdated) {
// To register new commands, update editor state based on new plugs
this.rebuildEditorState();
this.dispatchAppEvent("editor:pageLoaded", this.currentPage);
if (operations) {
// Likely initial sync so let's show visually that we're synced now
this.flashNotification(`Synced ${operations} files`, "info");