Fixing layout of customers index

This commit is contained in:
Rob Harrington
2015-05-14 12:37:55 +10:00
parent 78fc3e376b
commit c8502747be
2 changed files with 9 additions and 9 deletions

View File

@@ -8,7 +8,8 @@ angular.module("admin.customers").controller "customersCtrl", ($scope, Customers
code: { name: "Code", visible: true }
tags: { name: "Tags", visible: true }
$scope.initialise = ->
$scope.$watch "shop", ->
Customers.loaded = false
$scope.customers = Customers.index(enterprise_id: $scope.shop.id)
$scope.loaded = ->