[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 ValidateEditor from '../ValueEditor/ValidateEditor'
import ValueEditor from '../ValueEditor/ValueEditor'
import HideInStatic from '../common/HideInStatic'
import Headers from './Headers'
import { startEdit, updateEdit } from '../../ducks/ui/flow'
@ -105,6 +106,7 @@ export class Request extends Component {
onContentChange={content => updateFlow({ request: {content}})}
message={flow.request}/>
</article>
<HideInStatic>
{!noContent &&
<footer>
<ContentViewOptions
@ -114,6 +116,7 @@ export class Request extends Component {
uploadContent={content => uploadContent(flow, content, "request")}/>
</footer>
}
</HideInStatic>
</section>
)
}
@ -172,6 +175,7 @@ export class Response extends Component {
message={flow.response}
/>
</article>
<HideInStatic>
{!noContent &&
<footer >
<ContentViewOptions
@ -181,6 +185,7 @@ export class Response extends Component {
readonly={!isEdit}/>
</footer>
}
</HideInStatic>
</section>
)
}