2021-08-27 14:50:58 +02:00
|
|
|
import { Component } from "@angular/core";
|
2018-12-14 20:22:30 +01:00
|
|
|
import { ActivatedRoute } from "@angular/router";
|
|
|
|
|
2022-02-24 12:10:07 +01:00
|
|
|
import { ModalService } from "jslib-angular/services/modal.service";
|
2021-06-07 20:13:58 +02:00
|
|
|
import { CipherService } from "jslib-common/abstractions/cipher.service";
|
2021-10-20 18:30:04 +02:00
|
|
|
import { LogService } from "jslib-common/abstractions/log.service";
|
2021-06-07 20:13:58 +02:00
|
|
|
import { MessagingService } from "jslib-common/abstractions/messaging.service";
|
2021-12-14 17:10:26 +01:00
|
|
|
import { OrganizationService } from "jslib-common/abstractions/organization.service";
|
2021-10-11 15:32:30 +02:00
|
|
|
import { PasswordRepromptService } from "jslib-common/abstractions/passwordReprompt.service";
|
2021-12-14 17:10:26 +01:00
|
|
|
import { StateService } from "jslib-common/abstractions/state.service";
|
2022-02-24 12:10:07 +01:00
|
|
|
import { CipherView } from "jslib-common/models/view/cipherView";
|
2021-08-27 14:50:58 +02:00
|
|
|
|
2018-12-14 20:22:30 +01:00
|
|
|
import { InactiveTwoFactorReportComponent as BaseInactiveTwoFactorReportComponent } from "../../tools/inactive-two-factor-report.component";
|
|
|
|
|
|
|
|
@Component({
|
|
|
|
selector: "app-inactive-two-factor-report",
|
|
|
|
templateUrl: "../../tools/inactive-two-factor-report.component.html",
|
|
|
|
})
|
|
|
|
export class InactiveTwoFactorReportComponent extends BaseInactiveTwoFactorReportComponent {
|
2021-08-27 14:50:58 +02:00
|
|
|
constructor(
|
|
|
|
cipherService: CipherService,
|
|
|
|
modalService: ModalService,
|
2021-12-14 17:10:26 +01:00
|
|
|
messagingService: MessagingService,
|
|
|
|
stateService: StateService,
|
|
|
|
private route: ActivatedRoute,
|
|
|
|
logService: LogService,
|
|
|
|
passwordRepromptService: PasswordRepromptService,
|
|
|
|
private organizationService: OrganizationService
|
|
|
|
) {
|
|
|
|
super(
|
|
|
|
cipherService,
|
|
|
|
modalService,
|
|
|
|
messagingService,
|
|
|
|
stateService,
|
|
|
|
logService,
|
|
|
|
passwordRepromptService
|
|
|
|
);
|
2018-12-14 20:22:30 +01:00
|
|
|
}
|
2021-12-17 15:57:11 +01:00
|
|
|
|
2018-12-14 20:22:30 +01:00
|
|
|
async ngOnInit() {
|
2021-02-03 18:41:33 +01:00
|
|
|
this.route.parent.parent.params.subscribe(async (params) => {
|
2021-12-14 17:10:26 +01:00
|
|
|
this.organization = await this.organizationService.get(params.organizationId);
|
2018-12-14 20:22:30 +01:00
|
|
|
await super.ngOnInit();
|
|
|
|
});
|
|
|
|
}
|
2021-12-17 15:57:11 +01:00
|
|
|
|
2018-12-14 20:22:30 +01:00
|
|
|
getAllCiphers(): Promise<CipherView[]> {
|
|
|
|
return this.cipherService.getAllFromApiForOrganization(this.organization.id);
|
|
|
|
}
|
|
|
|
}
|