-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
120 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 25 additions & 17 deletions
42
web/app/components/document/sidebar/related-resources/list.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,27 @@ | ||
<AnimatedContainer class="w-full"> | ||
{{#if this.listIsEmpty}} | ||
<div class="mt-1.5" data-test-related-resources-list-empty-state> | ||
<CustomEditableFields::EmptyState /> | ||
</div> | ||
{{else}} | ||
<ul class="related-resources-list" ...attributes> | ||
{{#animated-each | ||
@items | ||
use=this.transition | ||
initialInsertion=true | ||
finalRemoval=true | ||
as |resource| | ||
}} | ||
{{yield resource to="resource"}} | ||
{{/animated-each}} | ||
</ul> | ||
{{/if}} | ||
<div {{did-insert this.didInsert}}> | ||
{{#if this.listIsEmpty}} | ||
<div class="mt-1.5" data-test-related-resources-list-empty-state> | ||
<CustomEditableFields::EmptyState /> | ||
</div> | ||
{{else}} | ||
<ul class="related-resources-list" ...attributes> | ||
{{#animated-each | ||
@items | ||
rules=this.transitionRules | ||
initialInsertion=true | ||
finalRemoval=true | ||
as |resource i| | ||
}} | ||
{{#if @itemLimit}} | ||
{{#if (lt i @itemLimit)}} | ||
{{yield resource to="resource"}} | ||
{{/if}} | ||
{{else}} | ||
{{yield resource to="resource"}} | ||
{{/if}} | ||
{{/animated-each}} | ||
</ul> | ||
{{/if}} | ||
</div> | ||
</AnimatedContainer> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters