-
@@ -258,10 +300,11 @@
@@ -573,11 +703,6 @@ function sortNamesPrimaryFirst(names) {
.dropDownActions svg {
width: 1.5em;
}
-
- .link-disabled {
- opacity: 0.5;
- pointer-events: none;
- }
}
.pkpFormField--affiliations__control .searchPhraseResults {
diff --git a/src/components/Form/mocks/field-affiliations.js b/src/components/Form/mocks/field-affiliations.js
index 664aae1b..86be1b03 100644
--- a/src/components/Form/mocks/field-affiliations.js
+++ b/src/components/Form/mocks/field-affiliations.js
@@ -3,7 +3,7 @@ export default {
component: 'author-affiliations',
authorId: 1,
primaryLocale: 'en',
- supportedFormLocales: [
+ locales: [
{key: 'en', label: 'English'},
{key: 'fr_CA', label: 'French (Canada)'},
{key: 'de', label: 'German'},
@@ -41,7 +41,7 @@ export default {
},
},
],
- apiResponse: {
+ searchResults: {
itemsMax: 110723,
items: [
{
@@ -376,7 +376,7 @@ export default {
},
],
},
- newAffiliationPending: {
+ newAffiliation: {
id: null,
authorId: 1,
ror: null,
diff --git a/src/components/ListPanel/contributors/ContributorsListPanel.vue b/src/components/ListPanel/contributors/ContributorsListPanel.vue
index 9c584937..4c3e1029 100644
--- a/src/components/ListPanel/contributors/ContributorsListPanel.vue
+++ b/src/components/ListPanel/contributors/ContributorsListPanel.vue
@@ -297,7 +297,7 @@ export default {
activeForm.fields = activeForm.fields.map((field) => {
if (field.name === 'affiliations') {
field.primaryLocale = activeForm.primaryLocale;
- field.supportedFormLocales = activeForm.supportedFormLocales;
+ field.locales = activeForm.supportedFormLocales;
}
return field;
});
@@ -405,7 +405,7 @@ export default {
} else if (field.name === 'affiliations') {
field.authorId = author['id'];
field.primaryLocale = activeForm.primaryLocale;
- field.supportedFormLocales = activeForm.supportedFormLocales;
+ field.locales = activeForm.supportedFormLocales;
field.value = author[field.name];
} else if (Object.keys(author).includes(field.name)) {
field.value = author[field.name];