1
0
mirror of https://github.com/bitwarden/desktop.git synced 2024-12-25 16:47:55 +01:00

Add back StateService subclass

This commit is contained in:
Thomas Rittson 2022-03-28 07:46:40 +10:00
parent 8a7c5b4b47
commit 098a05ba18
2 changed files with 7 additions and 0 deletions

View File

@ -170,6 +170,10 @@ export function initFactory(
provide: STATE_FACTORY,
useFactory: () => new StateFactory(GlobalState, Account),
},
{
provide: StateServiceAbstraction,
useClass: StateService,
},
],
})
export class ServicesModule {}

View File

@ -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