52 lines
2.0 KiB
TypeScript
52 lines
2.0 KiB
TypeScript
import { Component } from "@angular/core";
|
|
import { ActivatedRoute } from "@angular/router";
|
|
|
|
import { ModalService } from "@bitwarden/angular/services/modal.service";
|
|
import { CipherService } from "@bitwarden/common/abstractions/cipher.service";
|
|
import { LogService } from "@bitwarden/common/abstractions/log.service";
|
|
import { MessagingService } from "@bitwarden/common/abstractions/messaging.service";
|
|
import { OrganizationService } from "@bitwarden/common/abstractions/organization.service";
|
|
import { PasswordRepromptService } from "@bitwarden/common/abstractions/passwordReprompt.service";
|
|
import { StateService } from "@bitwarden/common/abstractions/state.service";
|
|
import { CipherView } from "@bitwarden/common/models/view/cipherView";
|
|
|
|
// eslint-disable-next-line no-restricted-imports
|
|
import { InactiveTwoFactorReportComponent as BaseInactiveTwoFactorReportComponent } from "../../reports/pages/inactive-two-factor-report.component";
|
|
|
|
@Component({
|
|
selector: "app-inactive-two-factor-report",
|
|
templateUrl: "../../reports/pages/inactive-two-factor-report.component.html",
|
|
})
|
|
export class InactiveTwoFactorReportComponent extends BaseInactiveTwoFactorReportComponent {
|
|
constructor(
|
|
cipherService: CipherService,
|
|
modalService: ModalService,
|
|
messagingService: MessagingService,
|
|
stateService: StateService,
|
|
private route: ActivatedRoute,
|
|
logService: LogService,
|
|
passwordRepromptService: PasswordRepromptService,
|
|
private organizationService: OrganizationService
|
|
) {
|
|
super(
|
|
cipherService,
|
|
modalService,
|
|
messagingService,
|
|
stateService,
|
|
logService,
|
|
passwordRepromptService
|
|
);
|
|
}
|
|
|
|
async ngOnInit() {
|
|
this.route.parent.parent.params.subscribe(async (params) => {
|
|
this.organization = await this.organizationService.get(params.organizationId);
|
|
await super.ngOnInit();
|
|
});
|
|
}
|
|
|
|
getAllCiphers(): Promise<CipherView[]> {
|
|
return this.cipherService.getAllFromApiForOrganization(this.organization.id);
|
|
}
|
|
}
|