mirror of
https://github.com/portainer/portainer.git
synced 2025-07-22 14:59: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
|
@ -41,6 +41,7 @@ export function NamespacesDatatable() {
|
|||
const namespacesQuery = useNamespacesQuery(environmentId, {
|
||||
autoRefreshRate: tableState.autoRefreshRate * 1000,
|
||||
withResourceQuota: true,
|
||||
withUnhealthyEvents: true,
|
||||
});
|
||||
const namespaces = Object.values(namespacesQuery.data ?? []);
|
||||
|
||||
|
@ -181,6 +182,7 @@ function TableActions({
|
|||
queryClient.setQueryData(
|
||||
queryKeys.list(environmentId, {
|
||||
withResourceQuota: true,
|
||||
withUnhealthyEvents: true,
|
||||
}),
|
||||
() => remainingNamespaces
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue