Skip to content

Commit 0731597

Browse files
committed
add hover text
1 parent 7b847dd commit 0731597

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

app/preprints/-components/submit/file/template.hbs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
{{/if}}
1212
{{#if this.loadFiles.isRunning}}
1313
<LoadingIndicator data-test-loading-indicator @dark={{true}} />
14-
{{else}}
14+
{{else}}
1515
{{#if this.isFileAttached}}
1616
<div local-class='file-container'>
1717
<div local-class='file'>
@@ -38,6 +38,9 @@
3838
disabled={{this.isButtonDisabled}}
3939
>
4040
{{ t 'preprints.submit.step-file.file-upload-label'}}
41+
<EmberTooltip>
42+
{{t 'preprints.submit.step-file.file-upload-help-text' singularPreprintWord=@manager.provider.documentType.singular}}
43+
</EmberTooltip>
4144
</Button>
4245
{{#if this.isSelectProjectButtonDisplayed}}
4346
<Button
@@ -48,6 +51,9 @@
4851
disabled={{this.isSelectProjectButtonDisabled}}
4952
>
5053
{{ t 'preprints.submit.step-file.file-select-label'}}
54+
<EmberTooltip>
55+
{{t 'preprints.submit.step-file.file-select-help-text' singularPreprintWord=@manager.provider.documentType.singular}}
56+
</EmberTooltip>
5157
{{#if this.isEdit}}
5258
<EmberTooltip>
5359
{{this.getSelectExplanationText}}

translations/en-us.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1192,14 +1192,16 @@ preprints:
11921192
delete-modal-title: 'Add a new {singularPreprintWord} file'
11931193
delete-warning: 'This will allow a new version of the {singularPreprintWord} file to be uploaded to the {singularPreprintWord}. The existing file will be retained as a version of the {singularPreprintWord}.'
11941194
file-select-label: 'Select from an existing OSF project'
1195+
file-select-help-text: 'Start a new {singularPreprintWord} to attach a file from your project.'
11951196
file-upload-label: 'Upload from your computer'
1197+
file-upload-help-text: 'Start a new {singularPreprintWord} to attach a file from your computer.'
11961198
file-upload-label-one: 'Drag and drop files here to upload'
11971199
file-upload-label-two: 'or click to browse for files.'
11981200
project-select-explanation: 'A file is attach to this {singularPreprintWord} draft. You can upload a new file version using the “Upload from your computer” option. Start a new {singularPreprintWord} if you need to attach a file from a project.'
11991201
title: 'File'
12001202
uploaded-file-title: 'Attached {singularPreprintWord} file'
12011203
upload-title: 'Upload your {singularPreprintWord}'
1202-
upload-warning: 'You cannot switch options once a file is attached.'
1204+
upload-warning: 'Note: You cannot switch options once a file is attached.'
12031205
step-metadata:
12041206
title: 'Metadata'
12051207
contributors-input: 'Contributors'
@@ -1289,7 +1291,7 @@ preprints:
12891291
error-withdrawal: 'Error withdrawing the {singularPreprintWord}.'
12901292
next: 'Next'
12911293
next-disabled-tooltip: 'Fill in "Required *" fields to continue'
1292-
no-moderation-notice: '<strong>{pluralCapitalizedPreprintWord} are a permanent part of the scholarly record. Withdrawal requests are subject to this service’s policy on {singularPreprintWord} removal and at the discretion of the moderators.</strong><br>This request will be submitted to
1294+
no-moderation-notice: '<strong>{pluralCapitalizedPreprintWord} are a permanent part of the scholarly record. Withdrawal requests are subject to this service’s policy on {singularPreprintWord} removal and at the discretion of the moderators.</strong><br>This request will be submitted to
12931295
<a href="mailto:{supportEmail}" target="_blank">{supportEmail}</a> for review and removal. If the request is approved, this {singularPreprintWord} will be replaced by a tombstone page with metadata and the reason for withdrawal. This {singularPreprintWord} will still be searchable by other users after removal.'
12941296
post-moderation-notice: '<strong>{pluralCapitalizedPreprintWord} are a permanent part of the scholarly record. Withdrawal requests are subject to this service’s policy on {singularPreprintWord} removal and at the discretion of the moderators.</strong><br>This service uses post-moderation. This request will be submitted to service moderators for review. If the request is approved, this {singularPreprintWord} will be replaced by a tombstone page with metadata and the reason for withdrawal. This {singularPreprintWord} will still be searchable by other users after removal.'
12951297
pre-moderation-notice-accepted: '<strong>{pluralCapitalizedPreprintWord} are a permanent part of the scholarly record. Withdrawal requests are subject to this service’s policy on {singularPreprintWord} removal and at the discretion of the moderators.</strong><br>This service uses pre-moderation. This request will be submitted to service moderators for review. If the request is approved, this {singularPreprintWord} will be replaced by a tombstone page with metadata and the reason for withdrawal. This {singularPreprintWord} will still be searchable by other users after removal.'

0 commit comments

Comments
 (0)