Contacts page: 'Start a conversation' button should depend on number of contacts in aspect
This commit is contained in:
parent
fb1ff06395
commit
0434599bd0
1 changed files with 2 additions and 2 deletions
|
|
@ -1,8 +1,8 @@
|
|||
.header
|
||||
- if @aspect
|
||||
#aspect_controls.pull-right
|
||||
- if @contacts_size > 0 && @contacts_size < 20
|
||||
= start_a_conversation_link(@aspect, @contacts_size)
|
||||
- if @aspect.contacts.size > 0 && @aspect.contacts.size < 20
|
||||
= start_a_conversation_link(@aspect, @aspect.contacts.size)
|
||||
|
||||
= link_to aspect_toggle_contact_visibility_path(@aspect), id: "contacts_visibility_toggle", class: "contacts_button", method: :put, remote: true do
|
||||
-if @aspect.contacts_visible?
|
||||
|
|
|
|||
Loading…
Reference in a new issue