[#7274] Address and web3 authorising permission window disappears right away ENS/Voting dapp home view loads

Signed-off-by: Julien Eluard <julien.eluard@gmail.com>
This commit is contained in:
Andrey Shovkoplyas 2019-01-25 13:35:35 +01:00 committed by Julien Eluard
parent 16b657d6ee
commit c7b532e1c5
No known key found for this signature in database
GPG Key ID: 6FD7DB5437FCBEF6
2 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@
(defn permission-details [requested-permission] (defn permission-details [requested-permission]
(get browser.permissions/supported-permissions requested-permission)) (get browser.permissions/supported-permissions requested-permission))
(views/defview permissions-panel [{:keys [dapp? dapp]} {:keys [dapp-name]}] (views/defview permissions-panel [[dapp? dapp] {:keys [dapp-name]}]
(views/letsubs [bottom-anim-value (anim/create-value -354) (views/letsubs [bottom-anim-value (anim/create-value -354)
alpha-value (anim/create-value 0) alpha-value (anim/create-value 0)
current-permission (reagent/atom nil) current-permission (reagent/atom nil)

View File

@ -143,7 +143,7 @@
(get-inject-js url)) (get-inject-js url))
:injected-java-script js-res/webview-js}])] :injected-java-script js-res/webview-js}])]
[navigation url-original webview can-go-back? can-go-forward?] [navigation url-original webview can-go-back? can-go-forward?]
[permissions.views/permissions-panel browser show-permission] [permissions.views/permissions-panel [(:dapp? browser) (:dapp browser)] show-permission]
(when show-tooltip (when show-tooltip
[tooltip/bottom-tooltip-info [tooltip/bottom-tooltip-info
(if (= show-tooltip :secure) (if (= show-tooltip :secure)