Make status clickable instead of adding pencil icon

This commit is contained in:
JC Brand 2019-10-17 13:33:43 +02:00
parent ea54644a45
commit 015f1c6fc8

View File

@ -12,13 +12,14 @@
{[ } ]} {[ } ]}
</div> </div>
<div class="d-flex xmpp-status"> <div class="d-flex xmpp-status">
<span class="{{{o.chat_status}}} w-100 align-self-center" data-value="{{{o.chat_status}}}"> <a class="change-status" title="{{{o.title_change_status}}}" data-toggle="modal" data-target="#changeStatusModal">
<span class=" <span class="{{{o.chat_status}}} w-100 align-self-center" data-value="{{{o.chat_status}}}">
{[ if (o.chat_status === 'online') { ]} fa fa-circle chat-status chat-status--online{[ } ]} <span class="
{[ if (o.chat_status === 'dnd') { ]} fa fa-minus-circle chat-status chat-status--busy {[ } ]} {[ if (o.chat_status === 'online') { ]} fa fa-circle chat-status chat-status--online{[ } ]}
{[ if (o.chat_status === 'away') { ]} fa fa-circle chat-status chat-status--away{[ } ]} {[ if (o.chat_status === 'dnd') { ]} fa fa-minus-circle chat-status chat-status--busy {[ } ]}
{[ if (o.chat_status === 'xa') { ]} far fa-circle chat-status chat-status--xa {[ } ]} {[ if (o.chat_status === 'away') { ]} fa fa-circle chat-status chat-status--away{[ } ]}
{[ if (o.chat_status === 'offline') { ]} fa fa-circle chat-status chat-status--offline{[ } ]}"></span> {{{o.status_message}}}</span> {[ if (o.chat_status === 'xa') { ]} far fa-circle chat-status chat-status--xa {[ } ]}
<a class="controlbox-heading__btn change-status fa fa-pencil-alt" title="{{{o.title_change_status}}}" data-toggle="modal" data-target="#changeStatusModal"></a> {[ if (o.chat_status === 'offline') { ]} fa fa-circle chat-status chat-status--offline{[ } ]}"></span> {{{o.status_message}}}</span>
</a>
</div> </div>
</div> </div>