aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGalen Guyer <galen@galenguyer.com>2022-08-31 10:24:25 -0400
committerGalen Guyer <galen@galenguyer.com>2022-08-31 10:24:25 -0400
commit8334273486c97097f0fdbabbe66d729fde867a1a (patch)
treed5ece1b66a8d76db5a8ac366421183e2bee5b10d
parent263b1fde274da9c40894ffa567ad63a46e0ac76c (diff)
Redirect to zone pages on login, remove "+" in edit modal
-rw-r--r--package.json2
-rw-r--r--src/routes/Login.js2
-rw-r--r--src/routes/Records.js1
3 files changed, 2 insertions, 3 deletions
diff --git a/package.json b/package.json
index 3faaa2d..cae2bf5 100644
--- a/package.json
+++ b/package.json
@@ -30,7 +30,7 @@
"eject": "react-scripts eject",
"deploy": "rsync -avz build/ root@hostsdottxt.net:/var/www/html/"
},
- "proxy": "http://hostsdottxt.net",
+ "proxy": "https://hostsdottxt.net",
"eslintConfig": {
"extends": [
"react-app",
diff --git a/src/routes/Login.js b/src/routes/Login.js
index 59b1298..c035ea9 100644
--- a/src/routes/Login.js
+++ b/src/routes/Login.js
@@ -63,7 +63,7 @@ function Login(props) {
let features = useFeatures();
const [totpRequired, setTotpRequired] = useState(false);
- let from = location.state?.from?.pathname || "/";
+ let from = location.state?.from?.pathname || "/zones";
useEffect(() => {
if (auth.token && !isExpired(auth.token)) {
diff --git a/src/routes/Records.js b/src/routes/Records.js
index b5d0486..1272fe9 100644
--- a/src/routes/Records.js
+++ b/src/routes/Records.js
@@ -129,7 +129,6 @@ export function Records() {
<th style={{ width: "24em" }}>Name</th>
<th style={{ width: "8em" }}>Content</th>
<th style={{ width: "6em" }}>TTL</th>
- <th>+</th>
</tr>
</thead>
<tbody>