From 1ea094e9dcf187a409dab9ca9a2b3a0b10f243f7 Mon Sep 17 00:00:00 2001 From: Clemens Date: Mon, 25 Jul 2016 15:47:05 +0200 Subject: [PATCH] remove auto change to raw mode on edit --- web/src/js/components/ContentView.jsx | 2 +- web/src/js/components/ContentView/ContentViews.jsx | 4 ++-- web/src/js/ducks/ui/flow.js | 1 - 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/web/src/js/components/ContentView.jsx b/web/src/js/components/ContentView.jsx index e88d1ce20..80dec0f46 100644 --- a/web/src/js/components/ContentView.jsx +++ b/web/src/js/components/ContentView.jsx @@ -40,7 +40,7 @@ function ContentView(props) { ) : ( - + )}
diff --git a/web/src/js/components/ContentView/ContentViews.jsx b/web/src/js/components/ContentView/ContentViews.jsx index 6c7f49009..b39e545af 100644 --- a/web/src/js/components/ContentView/ContentViews.jsx +++ b/web/src/js/components/ContentView/ContentViews.jsx @@ -60,10 +60,10 @@ ViewAuto.propTypes = { flow: React.PropTypes.object.isRequired, } -export function ViewAuto({ message, flow, readonly }) { +export function ViewAuto({ message, flow, readonly, onChange }) { const View = ViewAuto.findView(message) if (View.textView) { - return + return } else { return } diff --git a/web/src/js/ducks/ui/flow.js b/web/src/js/ducks/ui/flow.js index d77af420f..100bc771b 100644 --- a/web/src/js/ducks/ui/flow.js +++ b/web/src/js/ducks/ui/flow.js @@ -26,7 +26,6 @@ export default function reducer(state = defaultState, action) { return { ...state, modifiedFlow: action.flow, - contentView: 'ViewRaw' } case UPDATE_EDIT: