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:
@@ -16,6 +16,7 @@ import { Platform } from '@ionic/angular';
|
||||
import { SortService } from 'src/app/services/functions/sort.service';
|
||||
import { Storage } from '@ionic/storage';
|
||||
import { SessionStore } from 'src/app/store/session.service';
|
||||
import { HttpErrorHandle } from 'src/app/services/http-error-handle.service';
|
||||
|
||||
|
||||
@Component({
|
||||
@@ -49,7 +50,8 @@ export class PendentesPage implements OnInit {
|
||||
private platform: Platform,
|
||||
private backgroundservices: BackgroundService,
|
||||
private sortService: SortService,
|
||||
private storage: Storage
|
||||
private storage: Storage,
|
||||
private httpErroHandle: HttpErrorHandle
|
||||
) {
|
||||
this.loggeduser = SessionStore.user;
|
||||
this.profile = 'mdgpr';
|
||||
@@ -116,6 +118,8 @@ export class PendentesPage implements OnInit {
|
||||
}, (error) => {
|
||||
if(error.status == 0) {
|
||||
this.getFromDb();
|
||||
} else {
|
||||
this.httpErroHandle.httpStatusHandle(error)
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user