Remove group by attribute from header.
This commit is contained in:
parent
4aa4c84477
commit
4bb3ab8a46
1 changed files with 15 additions and 20 deletions
|
@ -134,6 +134,9 @@ class App.ControllerTable extends App.Controller
|
|||
headerFound = false
|
||||
for attributeName, attribute of attributes
|
||||
|
||||
# remove group by attribute from header
|
||||
if !@groupBy || @groupBy isnt item
|
||||
|
||||
if !attribute.style
|
||||
attribute.style = {}
|
||||
|
||||
|
@ -188,14 +191,6 @@ class App.ControllerTable extends App.Controller
|
|||
# group by
|
||||
if @groupBy
|
||||
|
||||
# remove group by attribute from header
|
||||
overview = _.filter(
|
||||
overview
|
||||
(item) =>
|
||||
return item if item isnt @groupBy
|
||||
return
|
||||
)
|
||||
|
||||
# get new order
|
||||
groupObjects = _.groupBy(
|
||||
@objects
|
||||
|
|
Loading…
Reference in a new issue