GUAC-1429: Modify Directory API to set identifier on added object, and update javascript to use new models.

This commit is contained in:
James Muehlner
2015-12-09 22:59:08 -08:00
parent 86841ebfe3
commit b0ac9e8d52
6 changed files with 26 additions and 16 deletions

View File

@@ -145,8 +145,8 @@ angular.module('rest').factory('connectionGroupService', ['$injector',
})
// Set the identifier on the new connection group and clear the cache
.success(function connectionGroupCreated(identifier){
connectionGroup.identifier = identifier;
.success(function connectionGroupCreated(newConnectionGroup){
connectionGroup.identifier = newConnectionGroup.identifier;
cacheService.connections.removeAll();
});
}

View File

@@ -152,8 +152,8 @@ angular.module('rest').factory('connectionService', ['$injector',
})
// Set the identifier on the new connection and clear the cache
.success(function connectionCreated(identifier){
connection.identifier = identifier;
.success(function connectionCreated(newConnection){
connection.identifier = newConnection.identifier;
cacheService.connections.removeAll();
});
}