mirror of
https://github.com/bitwarden/desktop
synced 2026-02-20 19:33:23 +00:00
Add back StateService subclass
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user