Skip to content

Commit

Permalink
reuse existing projects endpoint instead of creating a new one
Browse files Browse the repository at this point in the history
Signed-off-by: Ralf King <[email protected]>
  • Loading branch information
rkg-mm committed Dec 4, 2023
1 parent 97cde49 commit e42ed1b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/shared/api.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
"URL_LICENSE_GROUP": "api/v1/licenseGroup",
"URL_ACL_MAPPING": "api/v1/acl/mapping",
"URL_ACL_TEAM": "api/v1/acl/team",
"URL_ACL_NOTASSIGNEDPROJECTS": "api/v1/acl/notassignedprojects",
"URL_VEX": "api/v1/vex",
"URL_OSV_ECOSYSTEM": "api/v1/integration/osv/ecosystem"
}
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,11 @@ export default {
},
methods: {
apiUrl: function () {
let url = `${this.$api.BASE_URL}/${this.$api.URL_ACL_NOTASSIGNEDPROJECTS}/${this.teamUuid}`;
let url = `${this.$api.BASE_URL}/${this.$api.URL_PROJECT}?notAssignedToTeamWithUuid=${this.teamUuid}`;
if (this.showInactiveProjects === undefined) {
url += "?excludeInactive=true";
url += "&excludeInactive=true";
} else {
url += "?excludeInactive=" + !this.showInactiveProjects;
url += "&excludeInactive=" + !this.showInactiveProjects;
}
return url;
},
Expand Down

0 comments on commit e42ed1b

Please sign in to comment.