From dfc033ab5f981eb97cda695e707acd590e5708e3 Mon Sep 17 00:00:00 2001 From: Clemens Date: Wed, 1 Jun 2016 00:52:37 +0200 Subject: added basic file up_download functionality (not finish yet) --- web/src/js/components/header.js | 24 ++++++------------------ 1 file changed, 6 insertions(+), 18 deletions(-) (limited to 'web/src/js/components') diff --git a/web/src/js/components/header.js b/web/src/js/components/header.js index 0df29f51..4bb4622d 100644 --- a/web/src/js/components/header.js +++ b/web/src/js/components/header.js @@ -345,11 +345,14 @@ var FileMenu = React.createClass({ }, handleOpenClick: function (e) { e.preventDefault(); - console.error("unimplemented: handleOpenClick"); + }, + handleOpenChange: function (e) { + e.preventDefault(); + FlowActions.upload(e.target.files[0]); }, handleSaveClick: function (e) { e.preventDefault(); - console.error("unimplemented: handleSaveClick"); + FlowActions.download(); }, handleShutdownClick: function (e) { e.preventDefault(); @@ -369,10 +372,7 @@ var FileMenu = React.createClass({
  • - - - Open... - +
  • @@ -388,18 +388,6 @@ var FileMenu = React.createClass({
  • {/* -
  • - - - Open - -
  • -
  • - - - Save - -
  • -- cgit v1.2.3