[#8321] Change or remove back button from DApp browser screen

Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
This commit is contained in:
Andrey Shovkoplyas 2019-08-28 09:45:41 +03:00
parent 78754dfdee
commit 8e3624e87b
No known key found for this signature in database
GPG Key ID: EAAB7C8622D860A4
1 changed files with 4 additions and 4 deletions

View File

@ -58,10 +58,10 @@
[toolbar.view/toolbar [toolbar.view/toolbar
{:browser? true} {:browser? true}
[toolbar.view/nav-button [toolbar.view/nav-button
(actions/back (fn [] (actions/close (fn []
(re-frame/dispatch [:navigate-back]) (re-frame/dispatch [:navigate-back])
(when error? (when error?
(re-frame/dispatch [:browser.ui/remove-browser-pressed browser-id]))))] (re-frame/dispatch [:browser.ui/remove-browser-pressed browser-id]))))]
[toolbar-content url url-original browser url-editing?]]) [toolbar-content url url-original browser url-editing?]])
(defn- web-view-error [_ code desc] (defn- web-view-error [_ code desc]