diff --git a/webclient/src/Admin.js b/webclient/src/Admin.js index 267e99d..c1903bd 100644 --- a/webclient/src/Admin.js +++ b/webclient/src/Admin.js @@ -9,6 +9,7 @@ import { NotFound } from './Misc.js'; export function Admin(props) { const { token, user } = props; const [backup, setBackup] = useState(false); + const [reveal, setReveal] = useState(false); const [error, setError] = useState(false); useEffect(() => { @@ -39,12 +40,16 @@ export function Admin(props) {
Automate with wget (keep secret, that's your login token): -
- wget \ -+ {reveal ? +
--content-disposition \ -
--header="Authorization: Token {token}" \ -
{apiUrl}/backup/ -
+ wget \ ++ : + + } :
--content-disposition \ +
--header="Authorization: Token {token}" \ +
{apiUrl}/backup/ +