mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-19 13:54:25 +01:00
fix AdminMembersController init
This commit is contained in:
parent
fae013d973
commit
70ff027792
@ -212,7 +212,7 @@ Application.Controllers.controller "AdminMembersController", ["$scope", 'members
|
||||
# Kind of constructor: these actions will be realized first when the controller is loaded
|
||||
##
|
||||
initialize = ->
|
||||
if (!membersPromise[0] || membersPromise[0].maxInvoices <= $scope.members.length)
|
||||
if (!membersPromise[0] || membersPromise[0].maxMembers <= $scope.members.length)
|
||||
$scope.member.noMore = true
|
||||
|
||||
##
|
||||
@ -252,6 +252,8 @@ Application.Controllers.controller "AdminMembersController", ["$scope", 'members
|
||||
if (!members[0] || members[0].maxMembers <= $scope.members.length)
|
||||
$scope.member.noMore = true
|
||||
|
||||
## !!! MUST BE CALLED AT THE END of the controller
|
||||
initialize()
|
||||
]
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user