mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-06-18 10:06:26 +00:00
Add domain names to certificates table
This commit is contained in:
@ -2,7 +2,6 @@ import { useEffect, ReactNode } from "react";
|
||||
|
||||
import { Box, Container, useToast } from "@chakra-ui/react";
|
||||
import { useQueryClient } from "@tanstack/react-query";
|
||||
|
||||
import { getSSEToken, SSEMessage } from "src/api/npm";
|
||||
import { Footer, Navigation } from "src/components";
|
||||
import { intl } from "src/locale";
|
||||
@ -26,6 +25,7 @@ function SiteWrapper({ children }: Props) {
|
||||
eventSource.onmessage = (e: any) => {
|
||||
const j: SSEMessage = JSON.parse(e.data);
|
||||
if (j) {
|
||||
console.log("SSE Message:", j);
|
||||
if (j.affects) {
|
||||
queryClient.invalidateQueries({ queryKey: [j.affects] });
|
||||
}
|
||||
|
@ -8,6 +8,7 @@ import {
|
||||
ActionsFormatter,
|
||||
CertificateStatusFormatter,
|
||||
CertificateTypeFormatter,
|
||||
DomainsFormatter,
|
||||
GravatarFormatter,
|
||||
IDFormatter,
|
||||
MonospaceFormatter,
|
||||
@ -59,7 +60,14 @@ function Table({
|
||||
Cell: MonospaceFormatter(),
|
||||
},
|
||||
{
|
||||
Header: intl.formatMessage({ id: "column.validation-type" }),
|
||||
Header: intl.formatMessage({ id: "column.domain-names" }),
|
||||
accessor: "domainNames",
|
||||
sortable: true,
|
||||
Filter: TextFilter,
|
||||
Cell: DomainsFormatter(),
|
||||
},
|
||||
{
|
||||
Header: intl.formatMessage({ id: "column.type" }),
|
||||
accessor: "type",
|
||||
sortable: true,
|
||||
Cell: CertificateTypeFormatter(),
|
||||
|
Reference in New Issue
Block a user