Skip to content

Commit

Permalink
Issue #127 Technos should show where they are used corrections suite …
Browse files Browse the repository at this point in the history
…revue
  • Loading branch information
Bhoye05 committed Oct 15, 2019
1 parent df347c4 commit f2b08d0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/app/module/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,6 @@ angular.module('hesperides.module', [ 'hesperides.application' ])
]);

/** global method to get module or techno type : {workingcopy, release} */
getType = function(isWorkingCopy) {
getVersionType = function(isWorkingCopy) {
return isWorkingCopy ? 'workingcopy' : 'release';
};
4 changes: 2 additions & 2 deletions src/app/techno/techno.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ angular.module('hesperides.techno', [ 'hesperides.template', 'hesperides.propert
+ module.module_name
+ '/' + module.module_version
+ '?type='
+ getType(module.is_working_copy);;
+ getVersionType(module.is_working_copy);;
};

},
Expand Down Expand Up @@ -306,7 +306,7 @@ angular.module('hesperides.techno', [ 'hesperides.template', 'hesperides.propert
});
},
get_all_modules_using_this_techno(techno) {
return $hesperidesHttp.get(`rest/modules/using_techno/${ encodeURIComponent(techno.name) }/${ encodeURIComponent(techno.version) }/${ getType(techno.is_working_copy) }`).then(function (response) {
return $hesperidesHttp.get(`rest/modules/using_techno/${ encodeURIComponent(techno.name) }/${ encodeURIComponent(techno.version) }/${ getVersionType(techno.is_working_copy) }`).then(function (response) {
return response.data.map(function (current) {
return new Module(current);
});
Expand Down

0 comments on commit f2b08d0

Please sign in to comment.