Add data for email to participant POST

This commit is contained in:
rui hildt 2020-09-04 12:39:09 +02:00
parent 1cd658be06
commit 8edd9ce651
5 changed files with 10 additions and 3 deletions

View File

@ -90,6 +90,7 @@ export default function App() {
path='/invite'
component={Invite}
currentMeeting={currentMeeting}
currentUser={currentUser}
/>
</Switch>
</Router>

View File

@ -45,7 +45,7 @@ export default function IntervalSelector({
const timegridBody = el.querySelectorAll('div.fc-timegrid-body');
const timegridSlots = el.querySelectorAll('div.fc-timegrid-slots');
const timegridScroll = el.querySelectorAll(
'table.fc-col-header.fc-scrollgrid-sync-table',
'.fc-col-header.fc-scrollgrid-sync-table',
);
console.log(timegridScroll);

View File

@ -7,7 +7,7 @@ import { backend } from '../helpers/http-common';
import './styles/Invite.less';
import './styles/layout.less';
export default function Invite({ currentMeeting }) {
export default function Invite({ currentMeeting, currentUser }) {
const [emailList, setEmailList] = useState([]);
const [contactDropdown, setContactDropdown] = useState([]);
const [status, setStatus] = useState({
@ -72,6 +72,9 @@ export default function Invite({ currentMeeting }) {
mandatory: false, // update when implementing functionality
host: 0, // update when implementing functionality
answered: 0,
// Info for invite email
senderUsername: currentUser.username,
meetingTitle: currentMeeting.title,
};
});

View File

@ -53,7 +53,7 @@ export default function Login() {
};
if (isAuthenticated) {
return <Redirect to='/dashboard' />;
return <Redirect to='/schedule' />;
}
return (

View File

@ -155,6 +155,9 @@ export default function Schedule({
mandatory: 0, // 'false' while functionality not implemented
host: 1,
answered: 0,
// Info for invite email
senderUsername: currentUser.username,
meetingTitle: currentMeeting.title,
});
})
.catch((error) => {