Andrey Shovkoplyas 2017-04-03 11:30:24 +03:00 committed by Roman Volosovskyi
parent 7eeb0cded3
commit ae000ec118
1 changed files with 7 additions and 5 deletions

View File

@ -64,7 +64,7 @@
[text {:style st/profile-activity-status-text} [text {:style st/profile-activity-status-text}
(online-text last-online)]])]]) (online-text last-online)]])]])
(defn profile-actions [{:keys [pending? whisper-identity]} chat-id] (defn profile-actions [{:keys [pending? whisper-identity dapp?]} chat-id]
[view actions-list [view actions-list
(if pending? (if pending?
[action-button (label :t/add-to-contacts) [action-button (label :t/add-to-contacts)
@ -76,10 +76,12 @@
[action-button (label :t/start-conversation) [action-button (label :t/start-conversation)
:chats_blue :chats_blue
#(message-user whisper-identity)] #(message-user whisper-identity)]
[action-separator] (when-not dapp?
[action-button (label :t/send-transaction) [view
:arrow_right_blue [action-separator]
#(dispatch [:open-chat-with-the-send-transaction chat-id])]]) [action-button (label :t/send-transaction)
:arrow_right_blue
#(dispatch [:open-chat-with-the-send-transaction chat-id])]])])
(defn profile-info-item [{:keys [label value options text-mode empty-value?]}] (defn profile-info-item [{:keys [label value options text-mode empty-value?]}]
[view st/profile-setting-item [view st/profile-setting-item