Skip to content

Commit 8f0e236

Browse files
authored
Merge pull request #1089 from Gepardgame/fix/1088
2 parents 3222606 + 6b13831 commit 8f0e236

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/views/portfolio/projects/ProjectCreateProjectModal.vue

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@ import { Switch as cSwitch } from '@coreui/vue';
223223
import permissionsMixin from '../../../mixins/permissionsMixin';
224224
import Multiselect from 'vue-multiselect';
225225
import BInputGroupFormSwitch from '@/forms/BInputGroupFormSwitch.vue';
226+
import common from '../../../shared/common';
226227
227228
export default {
228229
name: 'ProjectCreateProjectModal',
@@ -312,20 +313,20 @@ export default {
312313
async getACLEnabled() {
313314
let url = `${this.$api.BASE_URL}/${this.$api.URL_CONFIG_PROPERTY}/public/access-management/acl.enabled`;
314315
let response = await this.axios.get(url);
315-
this.requiresTeam = response.data.propertyValue.toString();
316+
this.requiresTeam = common.toBoolean(
317+
response.data.propertyValue.toString(),
318+
);
316319
},
317320
async getAvailableTeams() {
318321
let url = `${this.$api.BASE_URL}/${this.$api.URL_TEAM}/visible`;
319322
let response = await this.axios.get(url);
320-
console.log(response.data);
321323
let convertedTeams = response.data.map((team) => {
322-
console.log(team.uuid);
323324
return { text: team.name, value: team.uuid };
324325
});
325326
this.availableTeams = convertedTeams;
326327
this.teams = response.data;
327328
if (this.requiresTeam && this.availableTeams.length == 1) {
328-
this.project.team = teams[0][0].value;
329+
this.project.team = this.availableTeams[0].value;
329330
this.isDisabled = true;
330331
}
331332
this.availableTeams.sort(function (a, b) {

0 commit comments

Comments
 (0)