-
Notifications
You must be signed in to change notification settings - Fork 90
Wizard Enhancements (4.x) #460
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wizard Enhancements (4.x) #460
Conversation
test/wizard/wizard.spec.js
Outdated
| $timeout.flush(); | ||
| }); | ||
| // $timeout.flush(); | ||
| // $timeout.flush(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need these anymore?
src/wizard/wizard.component.js
Outdated
| hideBackButton: '@', | ||
| sidebarClass: '@', | ||
| stepClass: '@', | ||
| contentHeight: '=?', currentStep: '<?', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is currentStep: '<?', really on the same line as contentHeight?
82716fc to
81a1639
Compare
| element = compileHtml(modalHtml, $scope); | ||
| $scope.$digest(); | ||
|
|
||
| // there are two dependent timeouts in the wizard that need to be flushed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment used here relates a nice bit of info about the need for running concurrent $timeout.flush() Should we look at keeping at least one of them? (the comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, as long as there is a reason to :-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed, could be labeled as... simply related to overall testing against multiple dependent components.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They actually should be flushed here, rather that in each test only when critical for test passage. I've put them back with the comment. Also added a comment where we flush again when navigating to a specific page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure thing
allow hiding header allow hiding the sidebar navigation panel allow hiding the back button (useful in 2 page wizards) add disabled class to step indicators when disabled allow adding a class to the sidebar and step panels rather than setting a height allow use of the wizard from typescript bases applications: The use of require ^ fails when being included in typescript so that has been removed and replaced by using scope to find the required Wizard/WizardStep controllers.
81a1639 to
de9c36b
Compare
The use of require ^ fails when being included in typescript so that has been removed and replaced by using scope to find the required Wizard/WizardStep controllers.
This is a port of #458