mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-28 01:51:09 +02:00
20 lines
424 B
JavaScript
20 lines
424 B
JavaScript
Demo.DemoController = Ember.ObjectController.extend({
|
|
currentText: "vault help",
|
|
currentLog: [],
|
|
logPrefix: "$ ",
|
|
cursor: 0,
|
|
notCleared: true,
|
|
|
|
setFromHistory: function() {
|
|
var index = this.get('currentLog.length') + this.get('cursor');
|
|
|
|
this.set('currentText', this.get('currentLog')[index]);
|
|
}.observes('cursor'),
|
|
|
|
actions: {
|
|
close: function() {
|
|
this.transitionTo('index');
|
|
}
|
|
}
|
|
});
|