diff --git a/webclient/src/Admin.js b/webclient/src/Admin.js index fa3ec51..05c1f21 100644 --- a/webclient/src/Admin.js +++ b/webclient/src/Admin.js @@ -6,6 +6,62 @@ import moment from 'moment'; import { apiUrl, statusColor, BasicTable, staticUrl, requester } from './utils.js'; import { NotFound } from './Misc.js'; +let historyCache = false; + +export function AdminHistory(props) { + const { token, user } = props; + const [history, setHistory] = useState(historyCache); + const [error, setError] = useState(false); + + useEffect(() => { + requester('/history/', 'GET', token) + .then(res => { + setHistory(res.results); + historyCache = res.results; + }) + .catch(err => { + console.log(err); + }); + }, []); + + return ( +
Loading...
+ : +Error loading.
+ } +Backups contain the complete member data and must be kept secure.
Talk to Tanner to learn how to get backups.
+Last 100 database changes:
+ +