Skip to content
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

Fix missing versions in Aboutt Modal #254

Merged
merged 1 commit into from
Nov 20, 2020

Conversation

ZitaNemeckova
Copy link
Member

@ZitaNemeckova ZitaNemeckova commented Nov 19, 2020

Move AboutModal to be a component to get componentDidMount to work properly.

Fix-Issue: AAH-161

Steps to reproduce:

  • log out of hub
  • refresh the page to clear out state
  • log in
  • open modal

Before:
Screenshot 2020-11-19 at 14 33 25

After:
Screenshot 2020-11-19 at 14 27 11

@ZitaNemeckova ZitaNemeckova added the backport-4.2 This PR should be backported to stable-4.2 (1.2) label Nov 19, 2020
@ZitaNemeckova ZitaNemeckova marked this pull request as draft November 19, 2020 13:41
@ZitaNemeckova ZitaNemeckova marked this pull request as ready for review November 19, 2020 13:57
console.log('componentDidMount');
ApplicationInfoAPI.get('')
.then(result => {
console.log(result);
Copy link
Member

Choose a reason for hiding this comment

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

Might want to remove this

Copy link
Member Author

Choose a reason for hiding this comment

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

Removed all console.logs

applicationInfo: { server_version: string; pulp_ansible_version: string };
}

export class AboutModalWindow extends React.Component<IProps, IState> {
Copy link
Member

Choose a reason for hiding this comment

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

I'm a little conflicted about classifying this as a component instead of a container. On one hand, it's making API requests and it has zero re-usability. On the other hand It's not a standalone page like all of our other containers are.

My gut reaction is to move this into containers. What do you think?

Copy link
Member Author

Choose a reason for hiding this comment

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

Moved :)

Move AboutModal to be a component

Fix-Issue: AAH-161
@ZitaNemeckova ZitaNemeckova merged commit 91700ad into ansible:master Nov 20, 2020
@ZitaNemeckova ZitaNemeckova deleted the fix_about_modal branch November 20, 2020 16:14
patchback bot pushed a commit that referenced this pull request Nov 20, 2020
Move AboutModal to be a component

Fix-Issue: AAH-161
(cherry picked from commit 91700ad)
newswangerd pushed a commit that referenced this pull request Nov 23, 2020
Move AboutModal to be a component

Fix-Issue: AAH-161
(cherry picked from commit 91700ad)

Co-authored-by: ZitaNemeckova <znemecko@redhat.com>
@newswangerd newswangerd mentioned this pull request Nov 23, 2020
@ZitaNemeckova ZitaNemeckova added the backported-4.2 This PR has been backported to stable-4.2 (1.2) label Apr 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-4.2 This PR should be backported to stable-4.2 (1.2) backported-4.2 This PR has been backported to stable-4.2 (1.2)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants