Bug reporting fixed. Added notification about not configured mail client

Signed-off-by: Volodymyr Kozieiev <vkjr.sp@gmail.com>
This commit is contained in:
Volodymyr Kozieiev 2020-01-22 13:31:05 +02:00
parent 6d666a07fe
commit 0106f6efcd
No known key found for this signature in database
GPG Key ID: 82B04968DF4C0535
3 changed files with 16 additions and 4 deletions

View File

@ -19,4 +19,5 @@
(get 0))) (get 0)))
(defn extract-url-components [address] (defn extract-url-components [address]
(rest (re-matches #"enode://(.*?)@(.*):(.*)" address))) (when address
(rest (re-matches #"enode://(.*?)@(.*):(.*)" address))))

View File

@ -81,6 +81,12 @@
:on-cancel #(re-frame/dispatch :on-cancel #(re-frame/dispatch
[:logging/dialog-canceled])}})) [:logging/dialog-canceled])}}))
(handlers/register-handler-fx
:show-client-error
(fn [_ _]
{:utils/show-popup {:title (i18n/label :t/cant-report-bug)
:content (i18n/label :t/mail-should-be-configured)}}))
(fx/defn dialog-closed (fx/defn dialog-closed
[{:keys [db]}] [{:keys [db]}]
{:db (dissoc db :logging/dialog-shown?)}) {:db (dissoc db :logging/dialog-shown?)})
@ -102,7 +108,8 @@
(str "App version: " build-version) (str "App version: " build-version)
(str "OS: " platform/os) (str "OS: " platform/os)
(str "Node version: " web3-node-version) (str "Node version: " web3-node-version)
(str "Mailserver: " (name current-id)) (when current-id
(str "Mailserver: " (name current-id)))
separator separator
"Node Info" "Node Info"
(str "id: " enode-id) (str "id: " enode-id)
@ -136,7 +143,9 @@
:attachment {:path archive-path :attachment {:path archive-path
:type "zip" :type "zip"
:name "status_logs.zip"}} :name "status_logs.zip"}}
(fn []))))) (fn [event]
(when (= event "not_available")
(re-frame/dispatch [:show-client-error])))))))
(handlers/register-handler-fx (handlers/register-handler-fx
:logging/dialog-canceled :logging/dialog-canceled

View File

@ -1158,5 +1158,7 @@
"keycard-free-pairing-slots": "Keycard has {{n}} free pairing slots", "keycard-free-pairing-slots": "Keycard has {{n}} free pairing slots",
"public-chat-description": "Join public chats for your interests! Anyone can start a new one.", "public-chat-description": "Join public chats for your interests! Anyone can start a new one.",
"delete-account": "Delete account", "delete-account": "Delete account",
"watch-only": "Watch-only" "watch-only": "Watch-only",
"cant-report-bug": "Can't report a bug",
"mail-should-be-configured": "Mail client should be configured"
} }