Revision b1242079
Added by Adam Price almost 10 years ago
engines/bastion/app/assets/javascripts/bastion/organizations/organization.factory.js | ||
---|---|---|
transformResponse: function (data) {
|
||
// transform [{environments : [{id, name, permissions: {readable : true}}]}]
|
||
// to [[{id, name, select: true}]]
|
||
return _.map(angular.fromJson(data), function (path) {
|
||
return _.map(angular.fromJson(data)["results"], function (path) {
|
||
return _.map(path["environments"], function (env) {
|
||
return {
|
||
id: env.id,
|
Also available in: Unified diff
fixes #7158 - environments are now inside of the "results" hash, BZ 1131618