Followup for issue #514 - Create ticket with customer (moved “New Ticket” to profile options pull down).

This commit is contained in:
Martin Edenhofer 2017-01-09 15:58:58 +01:00
parent 6b58d58f37
commit b19af65a46
2 changed files with 8 additions and 1 deletions

View file

@ -106,6 +106,9 @@ class ActionRow extends App.ObserverController
container: @el.closest('.content') container: @el.closest('.content')
) )
newTicket = =>
@navigate("ticket/create/customer/#{user.id}")
actions = [ actions = [
{ {
name: 'edit' name: 'edit'
@ -117,6 +120,11 @@ class ActionRow extends App.ObserverController
title: 'History' title: 'History'
callback: showHistory callback: showHistory
} }
{
name: 'ticket'
title: 'New Ticket'
callback: newTicket
}
] ]
new App.ActionRow( new App.ActionRow(

View file

@ -7,7 +7,6 @@
<% if @user.organization: %> <% if @user.organization: %>
<div class="profile-organization js-organization"></div> <div class="profile-organization js-organization"></div>
<% end %> <% end %>
<a href="#ticket/create/customer/<%= @user.id %>"><%- @T('New Ticket') %><a>
</div> </div>
<div class="profile-section js-object-container"></div> <div class="profile-section js-object-container"></div>
<div class="profile-section js-ticket-stats"></div> <div class="profile-section js-ticket-stats"></div>