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:
@@ -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>
|
||||
|
||||
@@ -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[]> {
|
||||
|
||||
@@ -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>();
|
||||
|
||||
Reference in New Issue
Block a user