File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
src/views/portfolio/projects Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -310,6 +310,9 @@ export default {
310310 },
311311 beforeMount () {
312312 this .$root .$on (' initializeProjectCreateProjectModal' , async () => {
313+ this .resetValues ();
314+ await this .getACLEnabled ();
315+ await this .getAvailableTeams ();
313316 await this .retrieveLicenses ();
314317 this .$root .$emit (' bv::show::modal' , ' projectCreateProjectModal' );
315318 });
@@ -342,6 +345,8 @@ export default {
342345 if (this .requiresTeam && this .availableTeams .length == 1 ) {
343346 this .project .team = this .availableTeams [0 ].value ;
344347 this .isDisabled = true ;
348+ } else {
349+ this .isDisabled = false ;
345350 }
346351 this .availableTeams .sort (function (a , b ) {
347352 return a .text .localeCompare (b .text );
@@ -443,6 +448,7 @@ export default {
443448 collectionLogic: ' NONE' , // set default to regular project
444449 team: [],
445450 };
451+ this .isDisabled = false ;
446452 this .tag = ' ' ;
447453 this .tags = [];
448454 this .selectedParent = null ;
You can’t perform that action at this time.
0 commit comments