From 7d92cdf3bb349b8621d4f96cca87eb2b132b24b4 Mon Sep 17 00:00:00 2001
From: Matthew Shao <me@matshao.com>
Date: Sat, 12 Aug 2017 19:38:52 +0800
Subject: [web] Hide ContentViewOptions in static mode

---
 web/src/js/components/FlowView/Messages.jsx | 5 +++++
 1 file changed, 5 insertions(+)

(limited to 'web/src/js/components/FlowView/Messages.jsx')

diff --git a/web/src/js/components/FlowView/Messages.jsx b/web/src/js/components/FlowView/Messages.jsx
index 4a31faf4..b69dfb69 100644
--- a/web/src/js/components/FlowView/Messages.jsx
+++ b/web/src/js/components/FlowView/Messages.jsx
@@ -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>
         )
     }
-- 
cgit v1.2.3

