passes through the user id for the user editor
This commit is contained in:
@@ -78,8 +78,8 @@
|
||||
umbRequestHelper.getApiUrl(
|
||||
"userApiBaseUrl",
|
||||
"GetById",
|
||||
{ id: id })),
|
||||
"Failed to retrieve data for user " + id);
|
||||
{ id: userId })),
|
||||
"Failed to retrieve data for user " + userId);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
(function () {
|
||||
"use strict";
|
||||
|
||||
function UserEditController($scope, $timeout, $location, usersResource) {
|
||||
function UserEditController($scope, $timeout, $location, usersResource, $routeParams) {
|
||||
|
||||
var vm = this;
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
vm.loading = true;
|
||||
|
||||
// get user
|
||||
usersResource.getUser().then(function (user) {
|
||||
usersResource.getUser($routeParams.id).then(function (user) {
|
||||
vm.user = user;
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user