mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 02:10:59 +00:00
[web] Hide ContentViewOptions in static mode
This commit is contained in:
parent
e925015d10
commit
7d92cdf3bb
@ -9,6 +9,7 @@ import ContentView from '../ContentView'
|
|||||||
import ContentViewOptions from '../ContentView/ContentViewOptions'
|
import ContentViewOptions from '../ContentView/ContentViewOptions'
|
||||||
import ValidateEditor from '../ValueEditor/ValidateEditor'
|
import ValidateEditor from '../ValueEditor/ValidateEditor'
|
||||||
import ValueEditor from '../ValueEditor/ValueEditor'
|
import ValueEditor from '../ValueEditor/ValueEditor'
|
||||||
|
import HideInStatic from '../common/HideInStatic'
|
||||||
|
|
||||||
import Headers from './Headers'
|
import Headers from './Headers'
|
||||||
import { startEdit, updateEdit } from '../../ducks/ui/flow'
|
import { startEdit, updateEdit } from '../../ducks/ui/flow'
|
||||||
@ -105,6 +106,7 @@ export class Request extends Component {
|
|||||||
onContentChange={content => updateFlow({ request: {content}})}
|
onContentChange={content => updateFlow({ request: {content}})}
|
||||||
message={flow.request}/>
|
message={flow.request}/>
|
||||||
</article>
|
</article>
|
||||||
|
<HideInStatic>
|
||||||
{!noContent &&
|
{!noContent &&
|
||||||
<footer>
|
<footer>
|
||||||
<ContentViewOptions
|
<ContentViewOptions
|
||||||
@ -114,6 +116,7 @@ export class Request extends Component {
|
|||||||
uploadContent={content => uploadContent(flow, content, "request")}/>
|
uploadContent={content => uploadContent(flow, content, "request")}/>
|
||||||
</footer>
|
</footer>
|
||||||
}
|
}
|
||||||
|
</HideInStatic>
|
||||||
</section>
|
</section>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
@ -172,6 +175,7 @@ export class Response extends Component {
|
|||||||
message={flow.response}
|
message={flow.response}
|
||||||
/>
|
/>
|
||||||
</article>
|
</article>
|
||||||
|
<HideInStatic>
|
||||||
{!noContent &&
|
{!noContent &&
|
||||||
<footer >
|
<footer >
|
||||||
<ContentViewOptions
|
<ContentViewOptions
|
||||||
@ -181,6 +185,7 @@ export class Response extends Component {
|
|||||||
readonly={!isEdit}/>
|
readonly={!isEdit}/>
|
||||||
</footer>
|
</footer>
|
||||||
}
|
}
|
||||||
|
</HideInStatic>
|
||||||
</section>
|
</section>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user