Skip to content

Commit 5708645

Browse files
ilmartyrkDiverVM
andauthored
add not items found text (#2307)
Co-authored-by: Viktar Maslouski <[email protected]>
1 parent 97ae42b commit 5708645

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/app/ideation/components/topic-ideation/topic-ideation.component.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -858,10 +858,13 @@
858858
</div>
859859
</div>
860860
</ng-container>
861-
<ng-container *ngIf="ideas.length">
861+
<ng-container *ngIf="ideas.length !== 0">
862862
<ideabox *ngFor="let idea of ideas" [topic]="topic" [ideation]="ideation" [idea]="idea">
863863
</ideabox>
864864
</ng-container>
865+
<ng-container *ngIf="ideas.length === 0">
866+
<div translate="COMPONENTS.TOPIC_IDEATION.NO_ITEMS_FOUND"></div>
867+
</ng-container>
865868
<div class="pagination_wrap">
866869
<cos-pagination (select)="TopicIdeaService.loadPage($event)" class="ideation"
867870
[totalPages]="(TopicIdeaService.totalPages$ | async) || 0"

src/assets/i18n/en.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -817,6 +817,7 @@
817817
"OPTION_DELETE_FOLDER": "Delete folder",
818818
"BTN_CREATE_NEW_FOLDER": "Create new folder",
819819
"NO_FOLDERS_HEADING": "There are no idea folders yet",
820+
"NO_ITEMS_FOUND": "No results found with these filters. Try adjusting your filters and search again.",
820821
"NO_FOLDERS_DESC": "Topic admins can create folders to group ideas that fit in the same category."
821822
},
822823
"TOUR": {

0 commit comments

Comments
 (0)