@@ -223,6 +223,7 @@ import { Switch as cSwitch } from '@coreui/vue';
223
223
import permissionsMixin from ' ../../../mixins/permissionsMixin' ;
224
224
import Multiselect from ' vue-multiselect' ;
225
225
import BInputGroupFormSwitch from ' @/forms/BInputGroupFormSwitch.vue' ;
226
+ import common from ' ../../../shared/common' ;
226
227
227
228
export default {
228
229
name: ' ProjectCreateProjectModal' ,
@@ -312,20 +313,20 @@ export default {
312
313
async getACLEnabled () {
313
314
let url = ` ${ this .$api .BASE_URL } /${ this .$api .URL_CONFIG_PROPERTY } /public/access-management/acl.enabled` ;
314
315
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
+ );
316
319
},
317
320
async getAvailableTeams () {
318
321
let url = ` ${ this .$api .BASE_URL } /${ this .$api .URL_TEAM } /visible` ;
319
322
let response = await this .axios .get (url);
320
- console .log (response .data );
321
323
let convertedTeams = response .data .map ((team ) => {
322
- console .log (team .uuid );
323
324
return { text: team .name , value: team .uuid };
324
325
});
325
326
this .availableTeams = convertedTeams;
326
327
this .teams = response .data ;
327
328
if (this .requiresTeam && this .availableTeams .length == 1 ) {
328
- this .project .team = teams[ 0 ] [0 ].value ;
329
+ this .project .team = this . availableTeams [0 ].value ;
329
330
this .isDisabled = true ;
330
331
}
331
332
this .availableTeams .sort (function (a , b ) {
0 commit comments