|
75 | 75 | : t(
|
76 | 76 | 'user.affiliations.typeTranslationNameInLanguageLabel',
|
77 | 77 | {language: getLocaleDisplayName(localeName)},
|
78 |
| - ) |
| 78 | + ) |
79 | 79 | }}
|
80 | 80 | </label>
|
81 | 81 | </div>
|
|
106 | 106 | :class="'dropDownActions border-transparent'"
|
107 | 107 | @action="rowActionsHandler"
|
108 | 108 | />
|
109 |
| - <button |
| 109 | + <a |
110 | 110 | v-if="indexRow === indexEditMode"
|
111 |
| - class="pkpButton border-transparent py-2 text-lg-semibold text-primary hover:enabled:underline" |
| 111 | + class="pkpButton cursor-pointer border-transparent py-2 text-lg-semibold text-primary hover:enabled:underline" |
112 | 112 | @click="closeEditMode()"
|
113 | 113 | >
|
114 | 114 | {{ t('common.close', {}) }}
|
115 |
| - </button> |
| 115 | + </a> |
116 | 116 | </TableCell>
|
117 | 117 | </TableRow>
|
118 | 118 | <TableRow>
|
|
208 | 208 | ? t(
|
209 | 209 | 'user.affiliations.typeTranslationNameInLanguageLabel',
|
210 | 210 | {language: getLocaleDisplayName(localeAddMode)},
|
211 |
| - ) |
| 211 | + ) |
212 | 212 | : getLocaleDisplayName(localeAddMode)
|
213 | 213 | }}
|
214 | 214 | </span>
|
|
234 | 234 | </TableCell>
|
235 | 235 | <TableCell>
|
236 | 236 | <div v-if="showAddMode">
|
237 |
| - <button |
238 |
| - class="pkpButton border-transparent py-2 text-lg-semibold text-primary hover:enabled:underline" |
239 |
| - :disabled="!validate(newAffiliationPending)" |
| 237 | + <a |
| 238 | + class="pkpButton cursor-pointer border-transparent py-2 text-lg-semibold text-primary hover:enabled:underline" |
| 239 | + :class="{'link-disabled': !validate(newAffiliationPending)}" |
240 | 240 | @click="addAffiliation"
|
241 | 241 | >
|
242 | 242 | {{ t('common.insert', {}) }}
|
243 |
| - </button> |
| 243 | + </a> |
244 | 244 | <br />
|
245 |
| - <button |
246 |
| - class="pkpButton border-transparent py-2 text-lg-semibold text-primary hover:enabled:underline" |
| 245 | + <a |
| 246 | + class="pkpButton cursor-pointer border-transparent py-2 text-lg-semibold text-primary hover:enabled:underline" |
247 | 247 | @click="closeAddMode"
|
248 | 248 | >
|
249 | 249 | {{ t('common.close', {}) }}
|
250 |
| - </button> |
| 250 | + </a> |
251 | 251 | </div>
|
252 | 252 | </TableCell>
|
253 | 253 | </TableRow>
|
@@ -573,6 +573,11 @@ function sortNamesPrimaryFirst(names) {
|
573 | 573 | .dropDownActions svg {
|
574 | 574 | width: 1.5em;
|
575 | 575 | }
|
| 576 | +
|
| 577 | + .link-disabled { |
| 578 | + opacity: 0.5; |
| 579 | + pointer-events: none; |
| 580 | + } |
576 | 581 | }
|
577 | 582 |
|
578 | 583 | .pkpFormField--affiliations__control .searchPhraseResults {
|
|
0 commit comments