Polished onboarding, removed stray logs

closes #102
This commit is contained in:
Stefan Zermatten
2017-09-28 13:17:33 +02:00
parent 4c31ab601c
commit bc9ec4421c
2 changed files with 2 additions and 5 deletions

View File

@@ -5,10 +5,8 @@ Template.newUserStepper.onRendered(function(){
this.autorun((c) => {
var step = Session.get("newUserExperienceStep");
var hasFeatures = Features.find({charId: this.data._id}).count() > 1;
console.log({step, hasFeatures});
if (step === 0 && hasFeatures){
stepper.continue();
c.stop();
}
});
this.autorun((c) => {
@@ -17,10 +15,11 @@ Template.newUserStepper.onRendered(function(){
charId: this.data._id,
stat: "speed",
"parent.group": "racial",
operation: "base",
value: {$gt: 0},
}).count();
if (step === 1 && hasEffect){
stepper.continue();
c.stop();
}
});
this.autorun((c) => {
@@ -28,7 +27,6 @@ Template.newUserStepper.onRendered(function(){
if (step === 2 && Session.get("viewedSpeed")){
Session.set("viewedSpeed", undefined);
stepper.continue();
c.stop();
}
});
});

View File

@@ -158,7 +158,6 @@ Template.attributeDialogView.helpers({
return evaluateEffect(this.charId, this);
},
showNewUserExperience: function(){
console.log(this.statName);
if (this.statName === "speed"){
return Session.get("newUserExperienceStep") >= 2;
}