File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 1
1
< div class ="large-container ">
2
2
< app-loader class ="loader " *ngIf ="isLoading "> </ app-loader >
3
3
< 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 >
6
6
</ div >
7
7
< div class ="files " *ngIf ="files.length > 0 && !isLoading ">
8
8
< section class ="group ">
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ export class SearchComponent implements OnInit {
14
14
15
15
files : File [ ] = [ ] ;
16
16
isLoading = false ;
17
+ query = '' ;
17
18
18
19
constructor (
19
20
private fileService : FileService ,
@@ -36,7 +37,10 @@ export class SearchComponent implements OnInit {
36
37
this . isLoading = false ;
37
38
} ,
38
39
error : ( ) => this . router . navigate ( [ '/' ] ) ,
39
- complete : ( ) => this . isLoading = false ,
40
+ complete : ( ) => {
41
+ this . query = query ;
42
+ this . isLoading = false ;
43
+ } ,
40
44
} ) ;
41
45
}
42
46
You can’t perform that action at this time.
0 commit comments