Skip to content

Commit 2a0a124

Browse files
committed
💄 change image on search page
1 parent 442e99d commit 2a0a124

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

src/app/features/search/search.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<div class="large-container">
22
<app-loader class="loader" *ngIf="isLoading"></app-loader>
33
<div class="not-items" *ngIf="!isLoading && files.length === 0">
4-
<img src="assets/images/no-files.svg" alt="no-files-image">
5-
<span class="description">Agrega tu primer archivo o carpeta</span>
4+
<img src="assets/images/no-items.svg" alt="no-files-image">
5+
<span class="description"> No se encontraron resultados con el término de búsqueda: <strong>{{ query }}</strong> </span>
66
</div>
77
<div class="files" *ngIf="files.length > 0 && !isLoading">
88
<section class="group">

src/app/features/search/search.component.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export class SearchComponent implements OnInit {
1414

1515
files: File[] = [];
1616
isLoading = false;
17+
query = '';
1718

1819
constructor(
1920
private fileService: FileService,
@@ -36,7 +37,10 @@ export class SearchComponent implements OnInit {
3637
this.isLoading = false;
3738
},
3839
error: () => this.router.navigate(['/']),
39-
complete: () => this.isLoading = false,
40+
complete: () => {
41+
this.query = query;
42+
this.isLoading = false;
43+
},
4044
});
4145
}
4246

src/assets/images/no-items.svg

Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)