[BUG #3083] Added extra delete options to current menu

This commit is contained in:
Julien Eluard 2018-01-18 15:21:47 +01:00
parent 0b035cfad7
commit 07fecc4e28
No known key found for this signature in database
GPG Key ID: 6FD7DB5437FCBEF6
1 changed files with 10 additions and 0 deletions

View File

@ -38,6 +38,15 @@
:height 19}
:handler #(re-frame/dispatch [:show-profile chat-id])})
(defn item-delete [chat-id]
{:title (i18n/label :t/delete-chat)
:icon :search_gray_copy
:icon-style {:width 17
:height 17}
;; TODO(jeluard) Refactor this or Jan will have an heart attack
:handler #(do (re-frame/dispatch [:remove-chat chat-id])
(re-frame/dispatch [:navigation-replace :home]))})
(def item-search
{:title (i18n/label :t/search-chat)
:subtitle (i18n/label :t/not-implemented)
@ -73,6 +82,7 @@
(defn user-chat-items [chat-id]
[(item-user chat-id)
(item-delete chat-id)
item-search
item-notifications])