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 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 ">
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments