Add reusable dialog (#459)

Signed-off-by: Ajay Bura <ajbura@gmail.com>
This commit is contained in:
Ajay Bura
2022-03-31 20:39:05 +05:30
committed by GitHub
parent 53a8e2aa57
commit 3f6e3074f2
9 changed files with 82 additions and 9 deletions

View File

@@ -174,6 +174,14 @@ class Navigation extends EventEmitter {
action.afterClose,
);
},
[cons.actions.navigation.OPEN_REUSABLE_DIALOG]: () => {
this.emit(
cons.events.navigation.REUSABLE_DIALOG_OPENED,
action.title,
action.render,
action.afterClose,
);
},
};
actions[action.type]?.();
}