mirror of
https://github.com/portainer/portainer.git
synced 2025-07-23 07:19:41 +02:00
feat: add warning events count next to the status badge (#828)
This commit is contained in:
parent
f4df51884c
commit
1332f718ae
18 changed files with 120 additions and 37 deletions
|
@ -5,7 +5,7 @@ import { EnvironmentId } from '@/react/portainer/environments/types';
|
|||
export const queryKeys = {
|
||||
list: (
|
||||
environmentId: EnvironmentId,
|
||||
options?: { withResourceQuota?: boolean }
|
||||
options?: { withResourceQuota?: boolean; withUnhealthyEvents?: boolean }
|
||||
) =>
|
||||
compact([
|
||||
'environments',
|
||||
|
@ -13,6 +13,7 @@ export const queryKeys = {
|
|||
'kubernetes',
|
||||
'namespaces',
|
||||
options?.withResourceQuota,
|
||||
options?.withUnhealthyEvents,
|
||||
]),
|
||||
namespace: (environmentId: EnvironmentId, namespace: string) =>
|
||||
[
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue