Commit 2413d083 authored by Emily Jensen's avatar Emily Jensen

Added knobs to change password story

parent 348f3edf
......@@ -26,7 +26,6 @@ import { BackupCodePdfService } from "../app/account/backup-code-pdf.service";
import { SetPasswordComponent } from "../app/account/reset-password/set-password/set-password.component";
import { ResetPasswordVerifyComponent } from "../app/account/reset-password/reset-password-verify/reset-password-verify.component";
storiesOf("Account", module)
.addDecorator(withKnobs)
.addDecorator(
......@@ -38,7 +37,7 @@ storiesOf("Account", module)
SharedModule,
RouterTestingModule,
ProgressIndicatorModule,
StoreModule.forRoot({}),
StoreModule.forRoot({})
],
declarations: [MarketingFrameComponent, PasswordInputComponent]
})
......@@ -109,7 +108,9 @@ storiesOf("Account", module)
.add("Change Password", () => ({
component: ChangePasswordComponent,
props: {
form: fromChangePassword.initialState.form
form: fromChangePassword.initialState.form,
hasStarted: boolean("hasStarted", true),
hasFinished: boolean("hasFinished", true)
}
}))
.add("Password Input", () => ({
......@@ -124,15 +125,16 @@ storiesOf("Account", module)
}))
.add("Manage Backup Code", () => {
const backupCodeToPdf = new BackupCodePdfService();
return ({
return {
component: ManageBackupCodeComponent,
props: {
form: fromChangePassword.initialState.form,
hasStarted: boolean("hasStarted", true),
hasFinished: boolean("hasFinished", true),
downloadPDF: () => backupCodeToPdf.download("CBVDCH4G23MJ46FXJBR8GDX4WKBF97VR"),
},
});
downloadPDF: () =>
backupCodeToPdf.download("CBVDCH4G23MJ46FXJBR8GDX4WKBF97VR")
}
};
})
.add("Set Password", () => ({
component: SetPasswordComponent,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment