fix moderationStarts issues
This commit is contained in:
parent
1c4af82126
commit
3e02cbb353
@ -138,7 +138,7 @@ export class JitsiComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
open(jitsiRoom: any, moderation: boolean) {
|
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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -35,6 +35,7 @@
|
|||||||
"delete": "Löschen",
|
"delete": "Löschen",
|
||||||
"error": {
|
"error": {
|
||||||
"expires": "Ungültiges Ende.",
|
"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.",
|
"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."
|
"starts": "Ungültiger Beginn."
|
||||||
},
|
},
|
||||||
|
@ -35,6 +35,7 @@
|
|||||||
"delete": "Delete",
|
"delete": "Delete",
|
||||||
"error": {
|
"error": {
|
||||||
"expires": "Invalid expiry.",
|
"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.",
|
"room": "Please choose a different name. The name is already taken or contains invalid characters. Only letters and numbers are allowed.",
|
||||||
"starts": "Invalid start."
|
"starts": "Invalid start."
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user