mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 21:35:50 +00:00
Disabled capacitor and add camera integration
This commit is contained in:
@@ -15,7 +15,7 @@ export class HomeGuard implements CanActivate {
|
||||
|
||||
canActivate(): Promise<boolean>{
|
||||
return new Promise(resolve => {
|
||||
this.storageService.get(AuthConnstants.AUTH).then(res => {
|
||||
/* this.storageService.get(AuthConnstants.AUTH).then(res => {
|
||||
if(res){
|
||||
resolve(true);
|
||||
}
|
||||
@@ -25,7 +25,7 @@ export class HomeGuard implements CanActivate {
|
||||
}
|
||||
}).catch(err =>{
|
||||
resolve(false);
|
||||
})
|
||||
}) */
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ export class IndexGuard implements CanActivate {
|
||||
){}
|
||||
canActivate(): Promise<boolean>{
|
||||
return new Promise(resolve => {
|
||||
this.storageService.get(AuthConnstants.AUTH).then(res => {
|
||||
/* this.storageService.get(AuthConnstants.AUTH).then(res => {
|
||||
if(res){
|
||||
this.router.navigate(['home']);
|
||||
resolve(false);
|
||||
@@ -24,7 +24,7 @@ export class IndexGuard implements CanActivate {
|
||||
}
|
||||
}).catch(err =>{
|
||||
resolve(false);
|
||||
})
|
||||
}) */
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user