feat(admin): add database table query page
This commit is contained in:
@@ -155,7 +155,17 @@ function InfoPanel({
|
||||
function TableStatRow({stat}: {stat: AdminDatabaseTableStatPayload}) {
|
||||
return (
|
||||
<tr>
|
||||
<td>{stat.tableName}</td>
|
||||
<td>
|
||||
<button
|
||||
className="admin-text-button"
|
||||
type="button"
|
||||
onClick={() => {
|
||||
window.location.hash = `#tables?table=${encodeURIComponent(stat.tableName)}`;
|
||||
}}
|
||||
>
|
||||
{stat.tableName}
|
||||
</button>
|
||||
</td>
|
||||
<td>{typeof stat.rowCount === 'number' ? stat.rowCount : '-'}</td>
|
||||
<td>
|
||||
{stat.errorMessage ? (
|
||||
|
||||
Reference in New Issue
Block a user