Followup for issue #514 - Create ticket with customer (moved “New Ticket” to profile options pull down).
This commit is contained in:
parent
6b58d58f37
commit
b19af65a46
2 changed files with 8 additions and 1 deletions
|
@ -106,6 +106,9 @@ class ActionRow extends App.ObserverController
|
|||
container: @el.closest('.content')
|
||||
)
|
||||
|
||||
newTicket = =>
|
||||
@navigate("ticket/create/customer/#{user.id}")
|
||||
|
||||
actions = [
|
||||
{
|
||||
name: 'edit'
|
||||
|
@ -117,6 +120,11 @@ class ActionRow extends App.ObserverController
|
|||
title: 'History'
|
||||
callback: showHistory
|
||||
}
|
||||
{
|
||||
name: 'ticket'
|
||||
title: 'New Ticket'
|
||||
callback: newTicket
|
||||
}
|
||||
]
|
||||
|
||||
new App.ActionRow(
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
<% if @user.organization: %>
|
||||
<div class="profile-organization js-organization"></div>
|
||||
<% end %>
|
||||
<a href="#ticket/create/customer/<%= @user.id %>"><%- @T('New Ticket') %><a>
|
||||
</div>
|
||||
<div class="profile-section js-object-container"></div>
|
||||
<div class="profile-section js-ticket-stats"></div>
|
||||
|
|
Loading…
Reference in a new issue