website/tutorial: add better "help"

This commit is contained in:
Jack Pearkes 2015-04-23 11:28:12 -07:00
parent eec8511656
commit 5272203d2e
1 changed files with 5 additions and 3 deletions

View File

@ -39,12 +39,12 @@ Demo.DemoStepController = Ember.ObjectController.extend({
},
next: function() {
var nextStepNumber = parseInt(this.get('model.id')) + 1;
var nextStepNumber = parseInt(this.get('model.id'), 10) + 1;
this.transitionTo('demo.step', nextStepNumber);
},
previous: function() {
var prevStepNumber = parseInt(this.get('model.id')) - 1;
var prevStepNumber = parseInt(this.get('model.id'), 10) - 1;
this.transitionTo('demo.step', prevStepNumber);
},
},
@ -79,7 +79,9 @@ Demo.DemoStepController = Ember.ObjectController.extend({
this.set('notCleared', false);
break;
case "help":
this.set('notCleared', true);
this.get('controllers.demo').appendLog('You can use `vault help <command>` ' +
'to learn more about specific Vault commands, or `next` ' +
'and `previous` to navigate.', false);
break;
default:
this.set('isLoading', true);