Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/views/portfolio/projects/ProjectCreateProjectModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,9 @@ export default {
},
beforeMount() {
this.$root.$on('initializeProjectCreateProjectModal', async () => {
this.resetValues();
await this.getACLEnabled();
await this.getAvailableTeams();
await this.retrieveLicenses();
this.$root.$emit('bv::show::modal', 'projectCreateProjectModal');
});
Expand Down Expand Up @@ -342,6 +345,8 @@ export default {
if (this.requiresTeam && this.availableTeams.length == 1) {
this.project.team = this.availableTeams[0].value;
this.isDisabled = true;
} else {
this.isDisabled = false;
}
this.availableTeams.sort(function (a, b) {
return a.text.localeCompare(b.text);
Expand Down Expand Up @@ -443,6 +448,7 @@ export default {
collectionLogic: 'NONE', // set default to regular project
team: [],
};
this.isDisabled = false;
this.tag = '';
this.tags = [];
this.selectedParent = null;
Expand Down
Loading