Skip to content

Commit

Permalink
button changed to a
Browse files Browse the repository at this point in the history
  • Loading branch information
GaziYucel committed Nov 19, 2024
1 parent 6a8601f commit 23d3e93
Showing 1 changed file with 17 additions and 12 deletions.
29 changes: 17 additions & 12 deletions src/components/Form/fields/FieldAffiliations.vue
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
: t(
'user.affiliations.typeTranslationNameInLanguageLabel',
{language: getLocaleDisplayName(localeName)},
)
)
}}
</label>
</div>
Expand Down Expand Up @@ -106,13 +106,13 @@
:class="'dropDownActions border-transparent'"
@action="rowActionsHandler"
/>
<button
<a
v-if="indexRow === indexEditMode"
class="pkpButton border-transparent py-2 text-lg-semibold text-primary hover:enabled:underline"
class="pkpButton cursor-pointer border-transparent py-2 text-lg-semibold text-primary hover:enabled:underline"
@click="closeEditMode()"
>
{{ t('common.close', {}) }}
</button>
</a>
</TableCell>
</TableRow>
<TableRow>
Expand Down Expand Up @@ -208,7 +208,7 @@
? t(
'user.affiliations.typeTranslationNameInLanguageLabel',
{language: getLocaleDisplayName(localeAddMode)},
)
)
: getLocaleDisplayName(localeAddMode)
}}
</span>
Expand All @@ -234,20 +234,20 @@
</TableCell>
<TableCell>
<div v-if="showAddMode">
<button
class="pkpButton border-transparent py-2 text-lg-semibold text-primary hover:enabled:underline"
:disabled="!validate(newAffiliationPending)"
<a
class="pkpButton cursor-pointer border-transparent py-2 text-lg-semibold text-primary hover:enabled:underline"
:class="{'link-disabled': !validate(newAffiliationPending)}"
@click="addAffiliation"
>
{{ t('common.insert', {}) }}
</button>
</a>
<br />
<button
class="pkpButton border-transparent py-2 text-lg-semibold text-primary hover:enabled:underline"
<a
class="pkpButton cursor-pointer border-transparent py-2 text-lg-semibold text-primary hover:enabled:underline"
@click="closeAddMode"
>
{{ t('common.close', {}) }}
</button>
</a>
</div>
</TableCell>
</TableRow>
Expand Down Expand Up @@ -573,6 +573,11 @@ function sortNamesPrimaryFirst(names) {
.dropDownActions svg {
width: 1.5em;
}
.link-disabled {
opacity: 0.5;
pointer-events: none;
}
}
.pkpFormField--affiliations__control .searchPhraseResults {
Expand Down

0 comments on commit 23d3e93

Please sign in to comment.