[SM-586] add search to Service Accounts list (#4923)
This commit is contained in:
parent
4f64ac87de
commit
6876aad883
|
@ -24,6 +24,11 @@ export class ServiceAccountsListComponent implements OnDestroy {
|
||||||
}
|
}
|
||||||
private _serviceAccounts: ServiceAccountView[];
|
private _serviceAccounts: ServiceAccountView[];
|
||||||
|
|
||||||
|
@Input()
|
||||||
|
set search(search: string) {
|
||||||
|
this.dataSource.filter = search;
|
||||||
|
}
|
||||||
|
|
||||||
@Output() newServiceAccountEvent = new EventEmitter();
|
@Output() newServiceAccountEvent = new EventEmitter();
|
||||||
@Output() deleteServiceAccountsEvent = new EventEmitter<ServiceAccountView[]>();
|
@Output() deleteServiceAccountsEvent = new EventEmitter<ServiceAccountView[]>();
|
||||||
@Output() onServiceAccountCheckedEvent = new EventEmitter<string[]>();
|
@Output() onServiceAccountCheckedEvent = new EventEmitter<string[]>();
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
<sm-header>
|
<sm-header>
|
||||||
<input bitInput [placeholder]="'searchServiceAccounts' | i18n" />
|
<input bitInput [placeholder]="'searchServiceAccounts' | i18n" [(ngModel)]="search" />
|
||||||
<sm-new-menu></sm-new-menu>
|
<sm-new-menu></sm-new-menu>
|
||||||
</sm-header>
|
</sm-header>
|
||||||
<sm-service-accounts-list
|
<sm-service-accounts-list
|
||||||
[serviceAccounts]="serviceAccounts$ | async"
|
[serviceAccounts]="serviceAccounts$ | async"
|
||||||
(newServiceAccountEvent)="openNewServiceAccountDialog()"
|
(newServiceAccountEvent)="openNewServiceAccountDialog()"
|
||||||
(deleteServiceAccountsEvent)="openDeleteDialog($event)"
|
(deleteServiceAccountsEvent)="openDeleteDialog($event)"
|
||||||
|
[search]="search"
|
||||||
></sm-service-accounts-list>
|
></sm-service-accounts-list>
|
||||||
|
|
|
@ -22,7 +22,8 @@ import { ServiceAccountService } from "./service-account.service";
|
||||||
templateUrl: "./service-accounts.component.html",
|
templateUrl: "./service-accounts.component.html",
|
||||||
})
|
})
|
||||||
export class ServiceAccountsComponent implements OnInit {
|
export class ServiceAccountsComponent implements OnInit {
|
||||||
serviceAccounts$: Observable<ServiceAccountView[]>;
|
protected serviceAccounts$: Observable<ServiceAccountView[]>;
|
||||||
|
protected search: string;
|
||||||
|
|
||||||
private organizationId: string;
|
private organizationId: string;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue