From b19af65a46c224433bc8ad4dd9b4ead25a00da6e Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Mon, 9 Jan 2017 15:58:58 +0100 Subject: [PATCH] =?UTF-8?q?Followup=20for=20issue=20#514=20-=20Create=20ti?= =?UTF-8?q?cket=20with=20customer=20(moved=20=E2=80=9CNew=20Ticket?= =?UTF-8?q?=E2=80=9D=20to=20profile=20options=20pull=20down).?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../javascripts/app/controllers/user_profile.coffee | 8 ++++++++ .../javascripts/app/views/user_profile/index.jst.eco | 1 - 2 files changed, 8 insertions(+), 1 deletion(-) 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') %>