Make sure userSelect directive uses our Admin::UserSerializer instead of base Spree api view

This commit is contained in:
Matt-Yorkley
2018-02-01 16:56:55 +00:00
committed by Rob Harrington
parent ec5ce45850
commit b893dea810
3 changed files with 12 additions and 11 deletions

View File

@@ -46,6 +46,7 @@ angular.module("admin.enterprises")
manager =
id: manager.id
email: manager.email
confirmed: manager.confirmed
if (user for user in $scope.Enterprise.users when user.id == manager.id).length == 0
$scope.Enterprise.users.push manager
else