mirror of
https://github.com/andwati/zitadel.git
synced 2026-10-31 11:32:15 +00:00
# Which Problems Are Solved The Management Console was still using the deprecate v2beta endpoints of the webkey service even though the v2 service was move to GA a while ago. # How the Problems Are Solved Switch to the v2 endpoints. # Additional Changes None # Additional Context - relates to #10773
25 lines
873 B
TypeScript
25 lines
873 B
TypeScript
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
|
|
import { ReplaySubject } from 'rxjs';
|
|
import { filter, map } from 'rxjs/operators';
|
|
import { MatTableDataSource } from '@angular/material/table';
|
|
import { WebKey } from '@zitadel/proto/zitadel/webkey/v2/key_pb';
|
|
|
|
@Component({
|
|
selector: 'cnsl-oidc-webkeys-inactive-table',
|
|
templateUrl: './oidc-webkeys-inactive-table.component.html',
|
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
standalone: false,
|
|
})
|
|
export class OidcWebKeysInactiveTableComponent {
|
|
@Input({ required: true })
|
|
public set inactiveWebKeys(webKeys: WebKey[] | null) {
|
|
this.inactiveWebKeys$.next(webKeys);
|
|
}
|
|
|
|
private inactiveWebKeys$ = new ReplaySubject<WebKey[] | null>(1);
|
|
protected dataSource$ = this.inactiveWebKeys$.pipe(
|
|
filter(Boolean),
|
|
map((webKeys) => new MatTableDataSource(webKeys)),
|
|
);
|
|
}
|