1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 08:43:33 +00:00

[SM-389] Event log for service account (#4679)

This commit is contained in:
Oscar Hinton
2023-02-24 16:44:24 +01:00
committed by GitHub
parent 76d6586ff8
commit a643074709
10 changed files with 65 additions and 9 deletions

View File

@@ -1,5 +1,5 @@
<sm-header>
<input bitInput [placeholder]="'searchSecrets' | i18n" />
<input bitInput [placeholder]="'searchSecrets' | i18n" [(ngModel)]="search" />
<sm-new-menu></sm-new-menu>
</sm-header>
<sm-secrets-list
@@ -7,4 +7,5 @@
(newSecretEvent)="openNewSecretDialog()"
(editSecretEvent)="openEditSecret($event)"
[secrets]="secrets$ | async"
[search]="search"
></sm-secrets-list>

View File

@@ -22,7 +22,8 @@ import { SecretService } from "./secret.service";
templateUrl: "./secrets.component.html",
})
export class SecretsComponent implements OnInit {
secrets$: Observable<SecretListView[]>;
protected secrets$: Observable<SecretListView[]>;
protected search: string;
private organizationId: string;
@@ -41,6 +42,10 @@ export class SecretsComponent implements OnInit {
return await this.getSecrets();
})
);
if (this.route.snapshot.queryParams.search) {
this.search = this.route.snapshot.queryParams.search;
}
}
private async getSecrets(): Promise<SecretListView[]> {

View File

@@ -24,6 +24,11 @@ export class SecretsListComponent implements OnDestroy {
}
private _secrets: SecretListView[];
@Input()
set search(search: string) {
this.dataSource.filter = search;
}
@Input() trash: boolean;
@Output() editSecretEvent = new EventEmitter<string>();