-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Related Resources refactor and External Link scope
#327
Conversation
scope
@@ -299,7 +299,6 @@ | |||
@documentIsDraft={{this.isDraft}} | |||
@productArea={{@document.product}} | |||
@objectID={{@document.objectID}} | |||
@allowAddingExternalLinks={{true}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is now the default setting.
@resource={{this.externalLink}} | ||
@hideModal={{this.hideModal}} | ||
@onClose={{this.hideModal}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Renamed to be consistent with the argument Modal expects.
web/app/components/related-resources/add-or-edit-external-resource-modal.ts
Outdated
Show resolved
Hide resolved
f90f6e5
to
925d7ed
Compare
@@ -6,6 +6,8 @@ | |||
</div> | |||
{{else}} | |||
<ul class="related-resources-list" ...attributes> | |||
{{! This is being looped through twice for some reason... }} | |||
{{! On immediate save, the order is wrong - maybe an array push thing? }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we follow up on this (/add a TODO)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was actually resolved and I forgot to remove the comment. Thanks for catching.
Refactors and expands the RelatedResources component so it can be used outside of the DocumentSidebar context/format.
/components/documents/sidebar
→/components
scope
to skip remove the "search Algolia" functionality. (There's also a document scope that replacesallowAddingExternalLinks=false
),scoped
andfallback
cases