From 3461e52999fca0a9b2254e7430423c8aa5ef7e73 Mon Sep 17 00:00:00 2001 From: Thomas Schauer-Koeckeis Date: Mon, 18 Nov 2024 14:18:56 +0100 Subject: [PATCH 1/2] Fixed Issue 1088 Signed-off-by: Thomas Schauer-Koeckeis --- src/views/portfolio/projects/ProjectCreateProjectModal.vue | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/views/portfolio/projects/ProjectCreateProjectModal.vue b/src/views/portfolio/projects/ProjectCreateProjectModal.vue index 17322022d..f02ae499e 100644 --- a/src/views/portfolio/projects/ProjectCreateProjectModal.vue +++ b/src/views/portfolio/projects/ProjectCreateProjectModal.vue @@ -317,15 +317,13 @@ export default { async getAvailableTeams() { let url = `${this.$api.BASE_URL}/${this.$api.URL_TEAM}/visible`; let response = await this.axios.get(url); - console.log(response.data); let convertedTeams = response.data.map((team) => { - console.log(team.uuid); return { text: team.name, value: team.uuid }; }); this.availableTeams = convertedTeams; this.teams = response.data; if (this.requiresTeam && this.availableTeams.length == 1) { - this.project.team = teams[0][0].value; + this.project.team = this.availableTeams[0].value; this.isDisabled = true; } this.availableTeams.sort(function (a, b) { From 6b138312923505dfcd9e84355117e26859738d55 Mon Sep 17 00:00:00 2001 From: Thomas Schauer-Koeckeis Date: Mon, 18 Nov 2024 14:41:31 +0100 Subject: [PATCH 2/2] There is a difference between false and 'false' Signed-off-by: Thomas Schauer-Koeckeis --- src/views/portfolio/projects/ProjectCreateProjectModal.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/views/portfolio/projects/ProjectCreateProjectModal.vue b/src/views/portfolio/projects/ProjectCreateProjectModal.vue index f02ae499e..b7646ee7f 100644 --- a/src/views/portfolio/projects/ProjectCreateProjectModal.vue +++ b/src/views/portfolio/projects/ProjectCreateProjectModal.vue @@ -223,6 +223,7 @@ import { Switch as cSwitch } from '@coreui/vue'; import permissionsMixin from '../../../mixins/permissionsMixin'; import Multiselect from 'vue-multiselect'; import BInputGroupFormSwitch from '@/forms/BInputGroupFormSwitch.vue'; +import common from '../../../shared/common'; export default { name: 'ProjectCreateProjectModal', @@ -312,7 +313,9 @@ export default { async getACLEnabled() { let url = `${this.$api.BASE_URL}/${this.$api.URL_CONFIG_PROPERTY}/public/access-management/acl.enabled`; let response = await this.axios.get(url); - this.requiresTeam = response.data.propertyValue.toString(); + this.requiresTeam = common.toBoolean( + response.data.propertyValue.toString(), + ); }, async getAvailableTeams() { let url = `${this.$api.BASE_URL}/${this.$api.URL_TEAM}/visible`;