Fixed shown icons in ticket list for merge.
This commit is contained in:
parent
31832897a3
commit
6f4bfc12e9
3 changed files with 7 additions and 7 deletions
|
@ -20,18 +20,18 @@ class App.TicketList extends App.Controller
|
|||
id: refObject.id
|
||||
value
|
||||
|
||||
callbackIconHeader = (header) ->
|
||||
callbackIconHeader = (headers) ->
|
||||
attribute =
|
||||
name: 'icon'
|
||||
display: ''
|
||||
translation: false
|
||||
style: 'width: 28px'
|
||||
header.unshift(0)
|
||||
header[0] = attribute
|
||||
header
|
||||
headers.unshift(0)
|
||||
headers[0] = attribute
|
||||
headers
|
||||
callbackIcon = (value, object, attribute, header, refObject) ->
|
||||
value = ' '
|
||||
attribute.class = object.icon()
|
||||
attribute.class = object.iconClass()
|
||||
attribute.link = ''
|
||||
attribute.title = App.i18n.translateInline( object.iconTitle() )
|
||||
value
|
||||
|
|
|
@ -43,7 +43,7 @@ class App.Ticket extends App.Model
|
|||
state
|
||||
|
||||
icon: ->
|
||||
"task-state"
|
||||
'task-state'
|
||||
|
||||
iconClass: ->
|
||||
@getState()
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
<% for item in @header: %>
|
||||
<th<% if item.className: %> class="<%= item.className %>"<% end %><% if item.style: %> style="<%= item.style %>"<% end %>>
|
||||
<%- @T( item.display ) %>
|
||||
<%- @Icon('arrow-down', 'table-sort-arrow') %>
|
||||
<% if item.sortOrderIcon: %><%- @Icon(item.sortOrderIcon[0], item.sortOrderIcon[1]) %><% end %>
|
||||
</th>
|
||||
<% end %>
|
||||
<% if @destroy: %>
|
||||
|
|
Loading…
Reference in a new issue