[web] Hide ContentViewOptions in static mode

This commit is contained in:
Matthew Shao 2017-08-12 19:38:52 +08:00
parent e925015d10
commit 7d92cdf3bb

View File

@ -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>
) )
} }