reload page button

Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
This commit is contained in:
Andrey Shovkoplyas 2018-07-12 15:22:56 +03:00
parent a644075310
commit 242c42ef3a
No known key found for this signature in database
GPG Key ID: EAAB7C8622D860A4
1 changed files with 7 additions and 4 deletions

View File

@ -12,7 +12,7 @@
[status-im.ui.components.react :as components] [status-im.ui.components.react :as components]
[reagent.core :as reagent] [reagent.core :as reagent]
[status-im.ui.components.chat-icon.screen :as chat-icon.screen] [status-im.ui.components.chat-icon.screen :as chat-icon.screen]
[status-im.ui.components.icons.vector-icons :as vector-icons] [status-im.ui.components.icons.vector-icons :as icons]
[status-im.i18n :as i18n] [status-im.i18n :as i18n]
[status-im.utils.ethereum.core :as ethereum] [status-im.utils.ethereum.core :as ethereum]
[status-im.ui.components.toolbar.actions :as actions] [status-im.ui.components.toolbar.actions :as actions]
@ -130,14 +130,17 @@
:style (when-not can-go-back? styles/disabled-button) :style (when-not can-go-back? styles/disabled-button)
:accessibility-label :previou-page-button} :accessibility-label :previou-page-button}
[react/view [react/view
[vector-icons/icon :icons/arrow-left]]] [icons/icon :icons/arrow-left]]]
[react/touchable-highlight {:on-press #(re-frame/dispatch [:browser-nav-forward browser]) [react/touchable-highlight {:on-press #(re-frame/dispatch [:browser-nav-forward browser])
:disabled (not can-go-forward?) :disabled (not can-go-forward?)
:style (merge styles/forward-button :style (merge styles/forward-button
(when-not can-go-forward? styles/disabled-button)) (when-not can-go-forward? styles/disabled-button))
:accessibility-label :next-page-button} :accessibility-label :next-page-button}
[react/view [react/view
[vector-icons/icon :icons/arrow-right]]]] [icons/icon :icons/arrow-right]]]
[react/view {:flex 1}]
[react/touchable-highlight {:on-press #(.reload @webview)}
[icons/icon :icons/refresh]]]
(when-not dapp? (when-not dapp?
[tooltip/bottom-tooltip-info [tooltip/bottom-tooltip-info
(i18n/label :t/browser-warning)])]))) (i18n/label :t/browser-warning)])])))