Skip to content

Conversation

@jeff-phillips-18
Copy link
Member

  • 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.

This is a port of #458

$timeout.flush();
});
// $timeout.flush();
// $timeout.flush();
Copy link
Member

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?

hideBackButton: '@',
sidebarClass: '@',
stepClass: '@',
contentHeight: '=?', currentStep: '<?',
Copy link
Member

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?

element = compileHtml(modalHtml, $scope);
$scope.$digest();

// there are two dependent timeouts in the wizard that need to be flushed
Copy link
Member

@cdcabrera cdcabrera May 8, 2017

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)

Copy link
Member

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 :-)

Copy link
Member

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.

Copy link
Member Author

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.

Copy link
Member

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.
@jeff-phillips-18 jeff-phillips-18 merged commit 8763b97 into patternfly:branch-4.0-dev May 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants