let join now link stay for duration of lesson
This commit is contained in:
parent
61314002b2
commit
6ab4775f96
|
|
@ -521,7 +521,7 @@ LessonTimerActions = context.LessonTimerActions
|
|||
if lessonData.times.startingSoon
|
||||
timeStmt = `<span>Starts in {lessonData.times.until.minutes} minutes. <a
|
||||
onClick={this.joinLessonNow.bind(this, lessonData)}>join lesson now</a></span>`
|
||||
else if lessonData.times.initialWindow
|
||||
else if lessonData.times.inThePast
|
||||
minutes = -lessonData.times.until.minutes
|
||||
|
||||
if minutes == 1 || minutes == 0
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ rest = new context.JK.Rest()
|
|||
# we are past the start time
|
||||
if untilInfo.total > -(10 * 60 * 1000) # 10 minutes
|
||||
initialWindow = true
|
||||
else if untilInfo.total > -(15*60*1000) # 15 minute
|
||||
else if untilInfo.total > -(lesson.duration*60*1000) # duration
|
||||
inThePast = true
|
||||
else
|
||||
# we are before the due time
|
||||
|
|
|
|||
Loading…
Reference in New Issue