1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-19 01:33:33 +00:00

[Provider] Add support for managing providers (#1014)

This commit is contained in:
Oscar Hinton
2021-07-21 11:32:27 +02:00
committed by GitHub
parent ebe08535e0
commit a94faf06a9
64 changed files with 2910 additions and 491 deletions

View File

@@ -25,6 +25,7 @@ export class EntityEventsComponent implements OnInit {
@Input() entity: 'user' | 'cipher';
@Input() entityId: string;
@Input() organizationId: string;
@Input() providerId: string;
@Input() showUser = false;
loading = true;
@@ -81,7 +82,10 @@ export class EntityEventsComponent implements OnInit {
let response: ListResponse<EventResponse>;
try {
let promise: Promise<any>;
if (this.entity === 'user') {
if (this.entity === 'user' && this.providerId) {
promise = this.apiService.getEventsProviderUser(this.providerId, this.entityId,
dates[0], dates[1], clearExisting ? null : this.continuationToken);
} else if (this.entity === 'user') {
promise = this.apiService.getEventsOrganizationUser(this.organizationId, this.entityId,
dates[0], dates[1], clearExisting ? null : this.continuationToken);
} else {