From bc9ec4421c00ba80c3ad9e0adf3e4141b35bd294 Mon Sep 17 00:00:00 2001 From: Stefan Zermatten Date: Thu, 28 Sep 2017 13:17:33 +0200 Subject: [PATCH] Polished onboarding, removed stray logs closes #102 --- .../client/views/character/newUserStepper/newUserStepper.js | 6 ++---- .../character/stats/attributeDialog/attributeDialog.js | 1 - 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/rpg-docs/client/views/character/newUserStepper/newUserStepper.js b/rpg-docs/client/views/character/newUserStepper/newUserStepper.js index 731ae2aa..c45acd9a 100644 --- a/rpg-docs/client/views/character/newUserStepper/newUserStepper.js +++ b/rpg-docs/client/views/character/newUserStepper/newUserStepper.js @@ -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(); } }); }); diff --git a/rpg-docs/client/views/character/stats/attributeDialog/attributeDialog.js b/rpg-docs/client/views/character/stats/attributeDialog/attributeDialog.js index 202df998..5c145202 100644 --- a/rpg-docs/client/views/character/stats/attributeDialog/attributeDialog.js +++ b/rpg-docs/client/views/character/stats/attributeDialog/attributeDialog.js @@ -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; }