mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 21:06:06 +00:00
All changes i made
This commit is contained in:
@@ -13,6 +13,7 @@ import { ThemeService } from 'src/app/services/theme.service'
|
||||
import { ViewDocumentPage } from 'src/app/modals/view-document/view-document.page';
|
||||
import { Router } from '@angular/router';
|
||||
import { environment } from 'src/environments/environment';
|
||||
import { HttpErrorHandle } from 'src/app/services/http-error-handle.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-search',
|
||||
@@ -65,7 +66,8 @@ export class SearchPage implements OnInit {
|
||||
private modalCtrl: ModalController,
|
||||
private navParams: NavParams,
|
||||
public ThemeService: ThemeService,
|
||||
private router: Router)
|
||||
private router: Router,
|
||||
private httpErrorhandle: HttpErrorHandle)
|
||||
{
|
||||
this.ordinance = "recent";
|
||||
this.currentPath= window.location.pathname;
|
||||
@@ -287,6 +289,7 @@ export class SearchPage implements OnInit {
|
||||
},error => {
|
||||
this.showLoader = false;
|
||||
// this.searchResult = "Registo não encontrado"
|
||||
this.httpErrorhandle.httpStatusHandle(error)
|
||||
console.log(error)
|
||||
});
|
||||
}
|
||||
@@ -334,7 +337,6 @@ export class SearchPage implements OnInit {
|
||||
this.loadWordCloud();
|
||||
},error => {
|
||||
this.searchResult = "Registo não encontrado"
|
||||
|
||||
counter++;
|
||||
console.log('application 8 failed', error)
|
||||
if(counter ==2) {
|
||||
|
||||
Reference in New Issue
Block a user