forked from zammad/zammad
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented feature to transfer chat sessions to another chat topic.
- Loading branch information
1 parent
3c788ca
commit 133b570
Showing
15 changed files
with
491 additions
and
160 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
app/assets/javascripts/app/views/customer_chat/chat_header.jst.eco
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<div class="status-fields"> | ||
<% if @chats.length > 1: %> | ||
<div class="buttonDropdown dropdown"> | ||
<div class="status-field status-field--spacer js-acceptChat"> | ||
<span class="badge js-badgeWaitingCustomers"></span> <%- @T('Waiting Customers') %> | ||
</div> | ||
<div class="status-field status-field--arrow" data-toggle="dropdown"> | ||
<%- @Icon('arrow-down') %> | ||
</div> | ||
<ul class="dropdown-menu" role="menu"> | ||
<% for chat in @chats: %> | ||
<li class="js-waitingCustomers js-acceptChat" disabled data-chat-id="<%= chat.id %>" role="menuitem"> | ||
<span class="badge js-badgeWaitingCustomers"></span> <%- @T('Waiting in %s', chat.name) %> <span class="flex-spacer"></span> | ||
<div class="status-badge js-info"> | ||
<div class="info-badge"><%- @Icon('info') %></div> | ||
</div> | ||
<% end %> | ||
</ul> | ||
</div> | ||
<% else: %> | ||
<div class="status-field js-acceptChat js-waitingCustomers"> | ||
<span class="badge js-badgeWaitingCustomers"></span> <%- @T('Waiting Customers') %> | ||
<div class="status-badge js-totalInfo"> | ||
<div class="info-badge"><%- @Icon('info') %></div> | ||
</div> | ||
</div> | ||
<% end %> | ||
<div class="status-field js-chattingCustomers"> | ||
<span class="badge js-badgeChattingCustomers"></span> <%- @T('Chatting Customers') %> | ||
<div class="status-badge js-info"> | ||
<div class="info-badge"><%- @Icon('info') %></div> | ||
</div> | ||
</div> | ||
<div class="status-field js-activeAgents"> | ||
<span class="badge js-badgeActiveAgents"></span> <%- @T('Active Agents') %> | ||
<div class="status-badge js-info"> | ||
<div class="info-badge"><%- @Icon('info') %></div> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.