Skip to content

Commit

Permalink
pkp/pkp-lib#10821 Use pkp-button for Apply Number in URN plugin, disa…
Browse files Browse the repository at this point in the history
…ble for empty value
  • Loading branch information
jardakotesovec committed Jan 20, 2025
1 parent 3425e58 commit 972f4af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
5 changes: 0 additions & 5 deletions plugins/pubIds/urn/URNPubIdPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -504,11 +504,6 @@ public function loadUrnFieldComponent(string $hookName, array $args): void
.pkpFormField--urn__input {
display: inline-block;
}
.pkpFormField--urn__button {
margin-left: 0.25rem;
height: 2.5rem; // Match input height
}
',
[
'contexts' => 'backend',
Expand Down
6 changes: 3 additions & 3 deletions plugins/pubIds/urn/js/FieldTextUrn.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ pkp.registry.registerComponent('FieldTextUrn', {
' :required="isRequired"' +
' :style="inputStyles"' +
' />' +
' <button' +
' <pkp-button' +
' v-if="applyCheckNumber"' +
' class="pkpButton pkpFormField--urn__button"' +
' @click.prevent="addCheckNumber"' +
' :disabled="currentValue.length === 0"' +
' >' +
' {{ addCheckNumberLabel }}' +
' </button>' +
' </pkp-button>' +
' <field-error' +
' v-if="errors.length"' +
' :id="describedByErrorId"' +
Expand Down

0 comments on commit 972f4af

Please sign in to comment.