|
|
|
@ -101,6 +101,8 @@ function TableEditor(p) { |
|
|
|
|
|
|
|
|
|
const initialVals={} |
|
|
|
|
|
|
|
|
|
const { TESTMODE } = p |
|
|
|
|
|
|
|
|
|
function updateVals(state,update) { |
|
|
|
|
if (update==='Clear') { |
|
|
|
|
return initialVals |
|
|
|
@ -165,7 +167,7 @@ function TableEditor(p) { |
|
|
|
|
|
|
|
|
|
useEffect(()=>{ |
|
|
|
|
setUpdate(true) |
|
|
|
|
},[p.path]) |
|
|
|
|
},[p.path,TESTMODE]) |
|
|
|
|
|
|
|
|
|
useEffect(()=>{ |
|
|
|
|
for (var col of fields) { |
|
|
|
@ -448,7 +450,7 @@ function AdminPanel(p) { |
|
|
|
|
<Helmet> |
|
|
|
|
<title>{APP_TITLE+" - Admin Panel: "+nav.page}</title> |
|
|
|
|
</Helmet> |
|
|
|
|
{nav.render??<TableEditor password={password} BACKENDURL={GetBackendURL(p)} path={nav.table}/>} |
|
|
|
|
{nav.render??<TableEditor TESTMODE={p.TESTMODE} password={password} BACKENDURL={GetBackendURL(p)} path={nav.table}/>} |
|
|
|
|
</div></div></Route>)} |
|
|
|
|
|
|
|
|
|
<Route path={process.env.PUBLIC_URL+"/admin/database_manager"}> |
|
|
|
|