mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-06 02:51:34 +00:00
Move logic for toggling by column into SortOptions
This commit is contained in:
committed by
Maikel Linke
parent
55d0b1dfc5
commit
5179f7fd63
@@ -2,3 +2,7 @@ angular.module("admin.indexUtils").factory 'SortOptions', ->
|
||||
new class SortOptions
|
||||
predicate: ""
|
||||
reverse: true
|
||||
|
||||
toggle: (predicate) ->
|
||||
@predicate = predicate
|
||||
@reverse = !@reverse
|
||||
|
||||
Reference in New Issue
Block a user