Skip to content

Commit

Permalink
let children access advancer steps
Browse files Browse the repository at this point in the history
  • Loading branch information
coilysiren committed Mar 8, 2018
1 parent 2aa5ed9 commit 5a7fa31
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions client/app/step.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,12 @@ export class StepComponent {
* and interact with the crypto through promises chained from private functions
*/

private advanceIntro(): void {
public advanceIntro(): void {
this.firstStep.shown = true;
this.scrollTo("first-step");
}

private advanceFirstStep(userInput: IUserInput): void {
public advanceFirstStep(userInput: IUserInput): void {
this.perpInput = userInput.perpInput;
this.userName = userInput.userName;
this.submitUserEntry().then(() => {
Expand All @@ -76,17 +76,17 @@ export class StepComponent {
});
}

private advanceSecondStep(): void {
public advanceSecondStep(): void {
this.thirdStep.shown = true;
this.scrollTo("third-step");
}

private advanceThirdStep(): void {
public advanceThirdStep(): void {
this.fourthStep.shown = true;
this.scrollTo("fourth-step");
}

private advanceFourthStep(): void {
public advanceFourthStep(): void {
// matched perpInput, diff username

const plainText: IPlainTextData = this.crypto.createDataSubmission(this.perpInput, this.userName + this.userName);
Expand All @@ -106,12 +106,12 @@ export class StepComponent {
});
}

private advanceFifthStep(): void {
public advanceFifthStep(): void {
this.sixthStep.shown = true;
this.scrollTo("sixth-step");
}

private advanceSixthStep(): void {
public advanceSixthStep(): void {
this.summaryStep.shown = true;
this.scrollTo("summary-step");
}
Expand Down

0 comments on commit 5a7fa31

Please sign in to comment.