From e42ed1bfabf6442a2d03cb0ade300e6815516d9e Mon Sep 17 00:00:00 2001 From: Ralf King Date: Mon, 4 Dec 2023 02:03:33 +0100 Subject: [PATCH] reuse existing projects endpoint instead of creating a new one Signed-off-by: Ralf King --- src/shared/api.json | 1 - .../administration/accessmanagement/SelectProjectModal.vue | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/shared/api.json b/src/shared/api.json index 1feee3a44..24478214f 100644 --- a/src/shared/api.json +++ b/src/shared/api.json @@ -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" } diff --git a/src/views/administration/accessmanagement/SelectProjectModal.vue b/src/views/administration/accessmanagement/SelectProjectModal.vue index dfe312cc4..f0e46884a 100644 --- a/src/views/administration/accessmanagement/SelectProjectModal.vue +++ b/src/views/administration/accessmanagement/SelectProjectModal.vue @@ -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; },