Skip to content
Snippets Groups Projects
Commit adf3c72f authored by L. Ellenbeck's avatar L. Ellenbeck
Browse files

Fix: fix race condition (coscine/issues#2359)

parent 18242602
No related branches found
No related tags found
7 merge requests!192Release: Sprint/2023 03 :robot:,!187Dev,!182Fix: Race condition on invited users,!181Dev,!180Fix: Disabled drag & drop option for Guests,!179Fix: Disable Data URL and Entry Name for Guests,!173Fix: fix race condition (coscine/issues#2359)
Pipeline #890864 passed
......@@ -81,11 +81,19 @@ export default defineComponent({
}
// Load Project Roles for the project if not present
if (this.projectStore.currentProjectRoles === null) {
this.projectStore.retrieveProjectRoles(this.project);
await this.projectStore.retrieveProjectRoles(this.project);
}
// Load list of all Project Role Types if not present
if (this.projectStore.roles === null) {
this.projectStore.retrieveRoles();
await this.projectStore.retrieveRoles();
}
// Load Invitations for the project if not present
if (
this.projectStore.currentInvitations === null &&
this.projectStore.currentUserRoleIsOwner
) {
this.projectStore.retrieveInvitations(this.project);
}
},
},
......
......@@ -278,16 +278,6 @@ export default defineComponent({
},
},
created() {
// Load Invitations for the project if not present
if (
this.projectStore.currentInvitations === null &&
this.projectStore.currentUserRoleIsOwner
) {
this.projectStore.retrieveInvitations(this.project);
}
},
methods: {
// For external users
async storeNewInvitation(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment