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

Fixed flickering on Settings tab #348

Merged
merged 2 commits into from Apr 3, 2018
Merged

Conversation

JuanjiJG
Copy link
Contributor

@JuanjiJG JuanjiJG commented Apr 3, 2018

Hello team!

This pull request fixes a weird flickering on the Settings tab, due to a situation where the template was loaded before knowing if there were API entries loaded, and after that, hiding again a card.

Best regards,
Juanjo

@JuanjiJG JuanjiJG self-assigned this Apr 3, 2018
@JuanjiJG JuanjiJG requested a review from jesusgn90 April 3, 2018 10:42
@@ -15,7 +15,7 @@
<div layout="column" layout-align="start stretch">

<!-- First-time welcome card -->
<md-card class="wz-md-card" layout-padding layout-align="start stretch" ng-if="submenuNavItem == 'api' && apiEntries.length == 0">
<md-card class="wz-md-card" layout-padding layout-align="start stretch" ng-if="submenuNavItem == 'api' && apiEntriesLoaded && apiEntries.length == 0">
Copy link
Contributor

Choose a reason for hiding this comment

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

@JuanjiJG we could use load variable who is already defined, replace && apiEntriesLoaded by && !load.
Since we can use it, you don't need any change con settings.js file, so fix it please. You should try it before any change because I didn't try it, but it should work, thanks.

Copy link
Contributor Author

@JuanjiJG JuanjiJG Apr 3, 2018

Choose a reason for hiding this comment

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

You're right, colleague. Now it's fixed, and the new variable was removed from the code. Now there are only CRLF fixes on the settings.js file. Thanks for your valuable feedback, it's really appreciated.

Regards,
Juanjo

@jesusgn90
Copy link
Contributor

LGTM

@jesusgn90 jesusgn90 merged commit f0e9694 into 3.2-xpack-rbac Apr 3, 2018
@jesusgn90 jesusgn90 deleted the 3.2-fix-flickering branch April 3, 2018 11:02
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.

None yet

2 participants