GitLab steht Mittwoch, den 08. Juli, zwischen 09:00 und 13:00 Uhr aufgrund von Wartungsarbeiten nicht zur Verfügung.

Commit 4aef8602 authored by Curtis Adam's avatar Curtis Adam Committed by Tom Käsler

Remove registration period check for bonus bert alert

parent 77f92a98
......@@ -40,16 +40,6 @@ Template.cardsetNavigationLearning.onRendered(function () {
setTimeout(function () {
Bert.defaults.hideDelay = 97200;
let bertType = "success";
if (Session.get('activeCardset').registrationPeriod.getTime() < new Date()) {
if (Leitner.findOne({
cardset_id: Session.get('activeCardset')._id,
user_id: Meteor.userId()
}, {fields: {_id: 1}}) === undefined) {
bertType = "warning";
BertAlertVisuals.displayBertAlert(TAPi18n.__('bonus.message.registrationPeriodExpired'), bertType, 'growl-top-left');
return;
}
}
if (Session.get('activeCardset').learningEnd.getTime() > new Date().getTime()) {
let text = "";
if (Leitner.find({
......
Markdown is supported
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