Display variant overrides

This commit is contained in:
Rohan Mitchell
2014-11-27 11:45:49 +11:00
parent 8baed4429c
commit 3aedbb6c48
5 changed files with 40 additions and 17 deletions

View File

@@ -1,9 +1,10 @@
angular.module("ofn.admin").controller "AdminOverrideVariantsCtrl", ($scope, Indexer, SpreeApiAuth, PagedFetcher, hubs, producers, hubPermissions) ->
angular.module("ofn.admin").controller "AdminOverrideVariantsCtrl", ($scope, Indexer, SpreeApiAuth, PagedFetcher, hubs, producers, hubPermissions, variantOverrides) ->
$scope.hubs = hubs
$scope.hub = null
$scope.products = []
$scope.producers = Indexer.index producers
$scope.hubPermissions = hubPermissions
$scope.variantOverrides = Indexer.index variantOverrides, 'variant_id'
$scope.initialise = ->
SpreeApiAuth.authorise()