mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-04-02 05:23:14 +00:00
checkpoiint
This commit is contained in:
committed by
Aiden McClelland
parent
ca19ffd9f7
commit
613625c012
@@ -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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user