Configuration: You can now see your expired API keys if you have no active ones (#42452)

* Configuration: Always display expired API keys

* Use exclamation-triangle instead

* Reintroduce toggle, move logic into store and call both endpoints

* Handle apiKeys without TTL

* Remove backend changes and make checks in frontend instead
This commit is contained in:
Ashley Harrison
2021-12-16 11:46:09 +00:00
committed by GitHub
parent 609a1aa8ad
commit 80b55f09ad
9 changed files with 280 additions and 75 deletions

View File

@@ -15,7 +15,9 @@ export interface NewApiKey {
}
export interface ApiKeysState {
includeExpired: boolean;
keys: ApiKey[];
keysIncludingExpired: ApiKey[];
searchQuery: string;
hasFetched: boolean;
}