fix moderationStarts issues

This commit is contained in:
_Bastler 2021-04-17 12:37:11 +02:00
parent 1c4af82126
commit 3e02cbb353
3 changed files with 3 additions and 1 deletions

View File

@ -138,7 +138,7 @@ export class JitsiComponent implements OnInit {
}
open(jitsiRoom: any, moderation: boolean) {
return (moderation || !jitsiRoom.starts || Date.parse(jitsiRoom.starts) < new Date().getTime()) && (!jitsiRoom.expires || Date.parse(jitsiRoom.expires) > new Date().getTime()) && (!moderation || (jitsiRoom.moderationStarts != null && Date.parse(jitsiRoom.moderationStarts) < new Date().getTime()));
return (moderation && jitsiRoom.moderationStarts != null || !jitsiRoom.starts || Date.parse(jitsiRoom.starts) < new Date().getTime()) && (!moderation || jitsiRoom.moderationStarts == null || Date.parse(jitsiRoom.moderationStarts) < new Date().getTime());
}
}

View File

@ -35,6 +35,7 @@
"delete": "Löschen",
"error": {
"expires": "Ungültiges Ende.",
"moderationStarts" : "Ungültiger Beginn Moderation. Moderation muss vor Beginn liegen.",
"room": "Bitte gebe einen anderen Namen an. Der Name ist schon vergeben oder enthält ungültige Zeichen. Erlaubt sind nur Buchstaben und Zahlen.",
"starts": "Ungültiger Beginn."
},

View File

@ -35,6 +35,7 @@
"delete": "Delete",
"error": {
"expires": "Invalid expiry.",
"moderationStarts" : "Invalid moderation starts. Moderation have to start before conference starts",
"room": "Please choose a different name. The name is already taken or contains invalid characters. Only letters and numbers are allowed.",
"starts": "Invalid start."
},