mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-22 15:37:45 +00:00
remove auto change to raw mode on edit
This commit is contained in:
parent
ca4541613c
commit
1ea094e9dc
@ -40,7 +40,7 @@ function ContentView(props) {
|
||||
<View readonly={readonly} onChange={onContentChange} content="" />
|
||||
</ContentLoader>
|
||||
) : (
|
||||
<View flow={flow} readonly={readonly} content={content} message={message} />
|
||||
<View flow={flow} readonly={readonly} onChange={onContentChange} content={content} message={message} />
|
||||
)}
|
||||
<div className="view-options text-center">
|
||||
<ViewSelector onSelectView={selectView} active={View} message={message}/>
|
||||
|
@ -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 <ContentLoader message={message} flow={flow}><View readonly={readonly} content="" /></ContentLoader>
|
||||
return <ContentLoader message={message} flow={flow}><View readonly={readonly} onChange={onChange} content="" /></ContentLoader>
|
||||
} else {
|
||||
return <View readonly={readonly} message={message} flow={flow} />
|
||||
}
|
||||
|
@ -26,7 +26,6 @@ export default function reducer(state = defaultState, action) {
|
||||
return {
|
||||
...state,
|
||||
modifiedFlow: action.flow,
|
||||
contentView: 'ViewRaw'
|
||||
}
|
||||
|
||||
case UPDATE_EDIT:
|
||||
|
Loading…
Reference in New Issue
Block a user