back/forward buttons always enabled in @browse
This commit is contained in:
parent
1010dedca9
commit
07c247be93
|
@ -29,11 +29,12 @@
|
||||||
(let [result-box (subscribe [:chat-ui-props :result-box])
|
(let [result-box (subscribe [:chat-ui-props :result-box])
|
||||||
webview (subscribe [:get :webview-bridge])]
|
webview (subscribe [:get :webview-bridge])]
|
||||||
(fn []
|
(fn []
|
||||||
(if (:can-go-back? @result-box)
|
|
||||||
[touchable-highlight
|
[touchable-highlight
|
||||||
{:on-press #(.goBack @webview)}
|
{:on-press #(.goBack @webview)}
|
||||||
[view (style/action-view true)
|
[view (style/action-view true)
|
||||||
[icon :action_back style/action-view-icon-tinted]]]
|
[icon :action_back style/action-view-icon-tinted]]]
|
||||||
|
#_(if (:can-go-back? @result-box)
|
||||||
|
|
||||||
[view (style/action-view false)
|
[view (style/action-view false)
|
||||||
[icon :action_back style/action-view-icon]]))))
|
[icon :action_back style/action-view-icon]]))))
|
||||||
|
|
||||||
|
@ -42,11 +43,12 @@
|
||||||
(let [result-box (subscribe [:chat-ui-props :result-box])
|
(let [result-box (subscribe [:chat-ui-props :result-box])
|
||||||
webview (subscribe [:get :webview-bridge])]
|
webview (subscribe [:get :webview-bridge])]
|
||||||
(fn []
|
(fn []
|
||||||
(if (:can-go-forward? @result-box)
|
|
||||||
[touchable-highlight
|
[touchable-highlight
|
||||||
{:on-press #(.goForward @webview)}
|
{:on-press #(.goForward @webview)}
|
||||||
[view (style/action-view true)
|
[view (style/action-view true)
|
||||||
[icon :action_forward style/action-view-icon-tinted]]]
|
[icon :action_forward style/action-view-icon-tinted]]]
|
||||||
|
#_(if (:can-go-forward? @result-box)
|
||||||
|
|
||||||
[view (style/action-view false)
|
[view (style/action-view false)
|
||||||
[icon :action_forward style/action-view-icon]]))))
|
[icon :action_forward style/action-view-icon]]))))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue