Commit 2c4dba1c authored by Sandro Lutz's avatar Sandro Lutz Committed by Sandro Lutz
Browse files

Add note to event when no registration is required

parent 403af224
......@@ -101,7 +101,11 @@ export default class EventDetails {
const registerStart = new Date(this.event.time_register_start);
const registerEnd = new Date(this.event.time_register_end);
if (registerStart <= now) {
console.log(this.event.time_register_start);
if (this.event.time_register_start === null) {
eventSignupForm = m('div', m('p', i18n('events.registration.none')));
} else if (registerStart <= now) {
if (registerEnd >= now) {
if (isLoggedIn()) {
if (!this.event.hasSignupDataLoaded) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment