diff --git a/app/assets/javascripts/app/controllers/user_profile.coffee b/app/assets/javascripts/app/controllers/user_profile.coffee index c30340e2c..cc734eec4 100644 --- a/app/assets/javascripts/app/controllers/user_profile.coffee +++ b/app/assets/javascripts/app/controllers/user_profile.coffee @@ -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( diff --git a/app/assets/javascripts/app/views/user_profile/index.jst.eco b/app/assets/javascripts/app/views/user_profile/index.jst.eco index 73e80a476..601eca945 100644 --- a/app/assets/javascripts/app/views/user_profile/index.jst.eco +++ b/app/assets/javascripts/app/views/user_profile/index.jst.eco @@ -7,7 +7,6 @@ <% if @user.organization: %>
<% end %> - <%- @T('New Ticket') %>