1
0
mirror of https://github.com/NginxProxyManager/nginx-proxy-manager.git synced 2025-11-05 15:30:37 +03:00

User table polish and audit log updates

This commit is contained in:
Jamie Curnow
2025-09-24 21:11:00 +10:00
parent fc8a5e8b97
commit a3d17249d0
14 changed files with 163 additions and 38 deletions

View File

@@ -5,17 +5,27 @@ import { intl } from "src/locale";
interface Props {
tableInstance: ReactTable<any>;
onNewUser?: () => void;
isFiltered?: boolean;
}
export default function Empty({ tableInstance, onNewUser }: Props) {
export default function Empty({ tableInstance, onNewUser, isFiltered }: Props) {
if (isFiltered) {
}
return (
<tr>
<td colSpan={tableInstance.getVisibleFlatColumns().length}>
<div className="text-center my-4">
<h2>{intl.formatMessage({ id: "proxy-hosts.empty" })}</h2>
<p className="text-muted">{intl.formatMessage({ id: "empty-subtitle" })}</p>
<Button className="btn-lime my-3" onClick={onNewUser}>
{intl.formatMessage({ id: "proxy-hosts.add" })}
</Button>
{isFiltered ? (
<h2>{intl.formatMessage({ id: "empty-search" })}</h2>
) : (
<>
<h2>{intl.formatMessage({ id: "users.empty" })}</h2>
<p className="text-muted">{intl.formatMessage({ id: "empty-subtitle" })}</p>
<Button className="btn-orange my-3" onClick={onNewUser}>
{intl.formatMessage({ id: "users.add" })}
</Button>
</>
)}
</div>
</td>
</tr>