|
|
|
@ -31,7 +31,6 @@
@@ -31,7 +31,6 @@
|
|
|
|
|
</td> |
|
|
|
|
<td class="pt-2">{{ contributor.researcher.email_address }}</td> |
|
|
|
|
</tr> |
|
|
|
|
|
|
|
|
|
<tr> |
|
|
|
|
<td class="pt-2"> |
|
|
|
|
{{ $t('form.profile.university.label').toUpperCase() }} |
|
|
|
@ -40,11 +39,10 @@
@@ -40,11 +39,10 @@
|
|
|
|
|
{{ |
|
|
|
|
contributor.researcher.university |
|
|
|
|
? contributor.researcher.university.name |
|
|
|
|
: '' |
|
|
|
|
: $t('page.researchStudies.studyId.contributors.index.table.no_university') |
|
|
|
|
}} |
|
|
|
|
</td> |
|
|
|
|
</tr> |
|
|
|
|
|
|
|
|
|
<tr> |
|
|
|
|
<td> |
|
|
|
|
{{ $t('form.profile.faculty.label').toUpperCase() }} |
|
|
|
@ -53,18 +51,16 @@
@@ -53,18 +51,16 @@
|
|
|
|
|
{{ |
|
|
|
|
contributor.researcher.faculty |
|
|
|
|
? contributor.researcher.faculty.name |
|
|
|
|
: '' |
|
|
|
|
: $t('page.researchStudies.studyId.contributors.index.table.no_faculty') |
|
|
|
|
}} |
|
|
|
|
</td> |
|
|
|
|
</tr> |
|
|
|
|
|
|
|
|
|
<tr> |
|
|
|
|
<td> |
|
|
|
|
{{ $t('form.contributorInvite.role.label').toUpperCase() }} |
|
|
|
|
</td> |
|
|
|
|
<td>{{ contributor.role }}</td> |
|
|
|
|
<td>{{ roles.filter(role => role.id === contributor.role)[0].name }}</td> |
|
|
|
|
</tr> |
|
|
|
|
|
|
|
|
|
<tr> |
|
|
|
|
<td> |
|
|
|
|
{{ $t('form.contributorInvite.active.label').toUpperCase() }} |
|
|
|
@ -87,21 +83,18 @@ export default {
@@ -87,21 +83,18 @@ export default {
|
|
|
|
|
const studyId = route.params.studyId |
|
|
|
|
const contributorId = route.params.contributorId |
|
|
|
|
|
|
|
|
|
// This does not work when you reload the browser.... It looses this information in the store..... why?? |
|
|
|
|
const studyData = store.getters['studies/getActiveStudy'] |
|
|
|
|
const studyAdmin = store.getters['authorisation/isAdminOfStudy']({ |
|
|
|
|
study: studyData, |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
await store.dispatch('studies/detailContributor', { |
|
|
|
|
studyId, |
|
|
|
|
contributorId, |
|
|
|
|
}) |
|
|
|
|
await Promise.all([ |
|
|
|
|
store.dispatch('studies/getRoles'), |
|
|
|
|
store.dispatch('studies/getStudy', { studyId }), |
|
|
|
|
]) |
|
|
|
|
|
|
|
|
|
return { |
|
|
|
|
contributor: store.getters['studies/getActiveContributorForStudy'], |
|
|
|
|
study: studyData, |
|
|
|
|
admin: studyAdmin, |
|
|
|
|
study: store.getters['studies/getActiveStudy'], |
|
|
|
|
contributor: store.getters['studies/getContributorFromActiveStudy']({ contributorId }), |
|
|
|
|
roles: store.getters['studies/getRoles'], |
|
|
|
|
admin: store.getters['authorisation/isAdminOfStudy']({ |
|
|
|
|
study: store.getters['studies/getActiveStudy'], |
|
|
|
|
}), |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
data() { |
|
|
|
|