pull request
johntom opened this issue · 3 comments
Hi,
I dd a pr late last night and checking if it worked as it's one of my first. At any rate I added some logic to the index.js file so the wizard will reset after going to page3
import {bindable, inject} from 'aurelia-framework';
import {Wizard} from './wizard';
@inject(Wizard)
export class Index{
showing = false;
wizardShowing = false;
constructor(wizard){
this.wizard = wizard;
this.steps = [
new Step(1, 'Step one', 'modal/wizard-step-one'),
new Step(2, 'Step two', 'modal/wizard-step-two'),
new Step(3, 'Step three', 'modal/wizard-step-three')
];
this.activeStep = this.steps[0];
}
showModal(){
this.showing = true;
}
closeModal(){
this.showing = false;
}
showWizard(){
this.wizardShowing = true;
}
nextStep(){
var self = this;
if (this.activeStep.id === this.steps.length) {
this.activeStep = this.steps[0];//jrt
self.wizardShowing = false;
} else {
this.activeStep = this.steps[this.activeStep.id];
}
}
closeWizard(){
// this.wizardShowing = false;
// added logic to close -- jrt
if (this.activeStep.id === this.steps.length) {
this.activeStep = this.steps[0];//jrt
self.wizardShowing = false;
} else {
this.wizardShowing = false;
}
}
}
class Step {
id = 0;
title = '';
path = '';
constructor(id, title, path){
this.id = id;
this.title = title;
this.path = path;
}
}
Ah cool, no it hasn't come through yet. Just go to your repo and click the green PR button.
Ok, I know I did this already but it was late so did again I checked your repo and it's now avail.
From: Patrick Walters [mailto:notifications@github.com]
Sent: Wednesday, July 08, 2015 9:18 PM
To: PWKad/aurelia-samples
Cc: John R. Tomaselli
Subject: Re: [aurelia-samples] pull request (#6)
Ah cool, no it hasn't come through yet. Just go to your repo and click the green PR button.
—
Reply to this email directly or view it on GitHub #6 (comment) . https://github.com/notifications/beacon/ABylgOtFX43z5d62OdNAXdnEWStgvll7ks5obcM3gaJpZM4FUeaA.gif
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2015.0.6037 / Virus Database: 4365/10095 - Release Date: 06/25/15
Internal Virus Database is out of date.
Closing this as it seems to have been fixed already.