Skip to content
Commits on Source (3)
......@@ -112,7 +112,7 @@
const sendAnswer = () => {
loading = true;
if (poll.type === POLLS_TYPES.MEETING){
if (poll.type === POLLS_TYPES.MEETING) {
toggleShowModal();
}
Meteor.call('polls_answers.create', { data: answer }, (error, result) => {
......@@ -120,13 +120,13 @@
if (error) {
toast.push($_(error.reason), toasts.error);
} else {
if (poll.type === POLLS_TYPES.MEETING){
if (poll.type === POLLS_TYPES.MEETING) {
if (answer.userId) {
router.goto(ROUTES.POLLS);
}else{
} else {
router.goto(ROUTES.END);
}
}else{
} else {
toast.push($_('pages.answer.poll_answered'));
}
}
......@@ -254,7 +254,7 @@
{:else if !poll.completed}
<BigLink
disabled={!isValideMail(answer.email) || !answer.name || loading}
action={toggleShowModal}
action={poll.type === POLLS_TYPES.MEETING ? toggleShowModal : sendAnswer}
text={$_('pages.new_poll.validate')}
/>
{:else}
......
{
"name": "sondage",
"version": "1.8.0-testing.1",
"version": "1.8.0-testing.2",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "sondage",
"version": "1.8.0-testing.1",
"version": "1.8.0-testing.2",
"license": "EUPL-1.2",
"dependencies": {
"@babel/runtime": "^7.21.5",
......
{
"name": "sondage",
"private": true,
"version": "1.8.0-testing.1",
"version": "1.8.0-testing.2",
"license": "EUPL-1.2",
"description": "Online polls and meetings",
"author": "EOLE/PCLL <team@eole.education> - DINUM",
......