checkpoiint

This commit is contained in:
Drew Ansbacher
2021-08-09 16:08:12 -06:00
committed by Aiden McClelland
parent ca19ffd9f7
commit 613625c012
21 changed files with 440 additions and 485 deletions

View File

@@ -1,32 +0,0 @@
import { Injectable } from '@angular/core'
import { CanActivate } from '@angular/router'
import { StateService } from '../services/state.service'
@Injectable({
providedIn: 'root',
})
export class CanActivateHome implements CanActivate {
constructor (
private readonly stateService: StateService
) {}
canActivate (): boolean {
console.log(!!this.stateService.recoveryDrive)
return !!this.stateService.recoveryDrive ? false : true
}
}
@Injectable({
providedIn: 'root',
})
export class CanActivateRecover implements CanActivate {
constructor (
private readonly stateService: StateService
) {}
canActivate (): boolean {
return this.stateService.dataDrive ? true : false
}
}