From 28417d795a6922c3df3c2c0aea78a51648b0428e Mon Sep 17 00:00:00 2001 From: Sébastien Dailly Date: Mon, 7 Feb 2022 15:27:05 +0100 Subject: Added import button in editor --- editor/actions/editor_actions.ml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'editor/actions/editor_actions.ml') diff --git a/editor/actions/editor_actions.ml b/editor/actions/editor_actions.ml index 8c47363..70b078b 100755 --- a/editor/actions/editor_actions.ml +++ b/editor/actions/editor_actions.ml @@ -72,11 +72,17 @@ let populate_menu add_button) and export_event = + Evr.on_el + Ev.click + (fun _ -> Export.create ()) + export_button + + and import_event = Note.E.join ( Evr.on_el Ev.click - (fun _ -> Export.create ()) - export_button) + (fun _ -> Import.create ()) + load_button) in @@ -147,4 +153,5 @@ let populate_menu ; redirect_event ; add_event ; export_event + ; import_event ]) -- cgit v1.2.3