Skip to content

Commit 7b2fe6e

Browse files
committed
fix(tooltip): added tooltip to next button
1 parent 147aeda commit 7b2fe6e

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

src/app/features/preprints/components/stepper/file-step/file-step.component.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,13 @@ <h2>{{ 'preprints.preprintStepper.file.title' | translate }}</h2>
128128
class="w-6 md:w-9rem"
129129
styleClass="w-full"
130130
[label]="'common.buttons.next' | translate"
131-
(onClick)="nextButtonClicked()"
132131
[disabled]="!preprint()?.primaryFileId || versionFileMode()"
132+
[pTooltip]="
133+
!preprint()?.primaryFileId || versionFileMode()
134+
? ('preprints.preprintStepper.common.validation.fillRequiredFields' | translate)
135+
: ''
136+
"
137+
tooltipPosition="top"
138+
(onClick)="nextButtonClicked()"
133139
/>
134140
</section>

src/assets/i18n/en.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2037,7 +2037,7 @@
20372037
},
20382038
"common": {
20392039
"validation": {
2040-
"fillRequiredFields": "Fill in 'Required' fields to continue"
2040+
"fillRequiredFields": "Fill in Required fields to continue"
20412041
},
20422042
"successMessages": {
20432043
"preprintSaved": "Preprint saved",

0 commit comments

Comments
 (0)