Skip to content

Add origin common modal popup component. #135

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

Merged
merged 1 commit into from
Aug 7, 2017

Conversation

jeff-phillips-18
Copy link
Member

Migrate from origin-web-catalog and make more generic.

Copy link
Member

@spadgett spadgett left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just a few small comments

{{$ctrl.modalTitle}}
</h4>
<div ng-transclude></div>
<a href="" class="origin-modal-popup-close" ng-click="$ctrl.onClose()()">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are the extra parens intentional because of how we are passing the callback? If so, worth a comment in case someone "fixes" it.

Copy link
Member Author

@jeff-phillips-18 jeff-phillips-18 Aug 1, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not necessary, I've fixed it.

var leftPos;
var elementRect = positionElement.getBoundingClientRect();
var windowHeight = $window.innerHeight;
var modalElement = angular.element($element)[0].children[0];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does $element[0].children[0] work without the angular.element()?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It does, I've removed it.

@jeff-phillips-18
Copy link
Member Author

Minor change for binding type of on-close (& to <) for consistency.

Copy link
Member

@spadgett spadgett left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, ready to merge?

@jeff-phillips-18
Copy link
Member Author

@spadgett Yes

@spadgett spadgett merged commit 2ed3126 into openshift:master Aug 7, 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.

4 participants