mirror of
https://github.com/bitwarden/desktop.git
synced 2024-12-24 16:38:24 +01:00
Add back StateService subclass
This commit is contained in:
parent
8a7c5b4b47
commit
098a05ba18
@ -170,6 +170,10 @@ export function initFactory(
|
||||
provide: STATE_FACTORY,
|
||||
useFactory: () => new StateFactory(GlobalState, Account),
|
||||
},
|
||||
{
|
||||
provide: StateServiceAbstraction,
|
||||
useClass: StateService,
|
||||
},
|
||||
],
|
||||
})
|
||||
export class ServicesModule {}
|
||||
|
@ -1,9 +1,12 @@
|
||||
import { Injectable } from "@angular/core";
|
||||
|
||||
import { StateService as StateServiceAbstraction } from "jslib-common/abstractions/state.service";
|
||||
import { GlobalState } from "jslib-common/models/domain/globalState";
|
||||
import { StateService as BaseStateService } from "jslib-common/services/state.service";
|
||||
|
||||
import { Account } from "../models/account";
|
||||
|
||||
@Injectable()
|
||||
export class StateService
|
||||
extends BaseStateService<GlobalState, Account>
|
||||
implements StateServiceAbstraction
|
||||
|
Loading…
Reference in New Issue
Block a user