mirror of
https://github.com/openmhz/trunk-server.git
synced 2026-11-12 08:47:40 -05:00
update TG to fix app
This commit is contained in:
@@ -44,7 +44,7 @@ const ConfirmEmail = (props) => {
|
||||
<Message.Content>
|
||||
<Message.Header>Success</Message.Header>
|
||||
<p>You have successfully confirmed you email address.</p>
|
||||
<Link to="/login">
|
||||
<Link to="/login?nextLocation=admin">
|
||||
<Button
|
||||
size="large"
|
||||
content="Continue to Login"
|
||||
|
||||
@@ -48,9 +48,12 @@ const Login = (props) => {
|
||||
window.location = process.env.REACT_APP_FRONTEND_SERVER;
|
||||
break;
|
||||
default:
|
||||
case "admin":
|
||||
window.location = process.env.REACT_APP_ADMIN_SERVER;
|
||||
break;
|
||||
case "admin":
|
||||
window.location = process.env.REACT_APP_ADMIN_SERVER;
|
||||
break;
|
||||
case "account":
|
||||
navigate("/");
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
navigate("/");
|
||||
|
||||
@@ -10,7 +10,7 @@ exports.get_talkgroups = async function (req, res) {
|
||||
|
||||
var talkgroups = {};
|
||||
for (var tg in tg_results) {
|
||||
var talkgroup = {num: tg_results[tg].num, alpha: tg_results[tg].alpha, description: tg_results[tg].description}
|
||||
var talkgroup = {_id: tg_results[tg]._id, num: tg_results[tg].num, alpha: tg_results[tg].alpha, description: tg_results[tg].description}
|
||||
talkgroups[tg_results[tg].num] = talkgroup;
|
||||
}
|
||||
res.contentType('json');
|
||||
|
||||
@@ -284,8 +284,8 @@ const Main = (props) => {
|
||||
</Grid.Column>
|
||||
</Grid.Row>
|
||||
</Grid>
|
||||
|
||||
</Segment>
|
||||
|
||||
<Segment style={{ padding: '0em' }} vertical>
|
||||
<Grid celled='internally' columns='equal' stackable>
|
||||
<Grid.Row textAlign='center'>
|
||||
|
||||
Reference in New Issue
Block a user