Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export default class ConfiguredAddonEdit extends Component<Args> {
@tracked selectedResourceType = '';
@tracked isWBGoogleDrive = false;
@tracked accountId!: string;
@tracked isResourceTypeDialogOpen = false;

originalName = this.displayName;
originalRootFolder = this.selectedFolder;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,13 @@
{{#if this.isLinkAddon}}
<label>
{{t 'addons.configure.resource-type'}}
<Button
aria-label={{t 'addons.configure.resource-type-helper-aria-label'}}
@layout='fake-link'
{{on 'click' (fn (mut this.isResourceTypeDialogOpen) true)}}
>
<FaIcon @icon='question-circle' />
</Button>
<PowerSelect
@options={{@supportedResourceTypes}}
@selected={{this.selectedResourceType}}
Expand Down Expand Up @@ -200,3 +207,27 @@
</Button>
</div>
</div>

<OsfDialog
@isOpen={{this.isResourceTypeDialogOpen}}
@onClose={{action (mut this.isResourceTypeDialogOpen) false}}
@closeOnOutsideClick={{true}}
as |dialog|
>
<dialog.heading>
{{t 'addons.configure.resource-type-helper-header'}}
</dialog.heading>
<dialog.main tabindex='0'>
{{t 'addons.configure.resource-type-helper-body'
htmlSafe=true
}}
</dialog.main>
<dialog.footer>
<Button
@type='secondary'
{{on 'click' dialog.close}}
>
{{t 'general.close'}}
</Button>
</dialog.footer>
</OsfDialog>
3 changes: 3 additions & 0 deletions translations/en-us.yml
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,9 @@ addons:
heading: 'Configure {providerName}'
resource-type: 'Resource type'
resource-type-placeholder: 'Choose a resource type'
resource-type-helper-aria-label: 'More information about resource types'
resource-type-helper-header: 'About resource type'
resource-type-helper-body: 'This helps others understand what kind of material you''re sharing. Choosing the right resource type makes it easier for search engines and research tools to find and share your work—both on OSF and in other scholarly indexes.<br><br>For example, selecting <b>“Dataset”</b> tells tools and repositories that your files are research data, which helps your work appear in places that specialize in datasets.<br><br>Pick the option that best describes most of the files you''re linking.<br><br>OSF uses resource types from <b>DataCite</b>, a standard used by many research platforms. <a target="_blank" rel="noopener noreferrer" href="https://help.osf.io/article/570-resource-types-in-osf">(Learn more)</a>'
display-name: 'Display name'
selected-folder: 'Selected folder:'
linked-item: 'Linked item:'
Expand Down