-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
Hide Share button from My Projects Page #1283
Hide Share button from My Projects Page #1283
Conversation
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 code looks good, and it should work as is, I'd like to ask you to make the settings and share button visibility logic the same, since they should be the same. See my comment about renaming the variable. Thank you!
9d5fa69
to
d0c4c07
Compare
Added additional business logic around displaying the header buttons. |
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.
I recommend that have two clear booleans (or methods) that are defined in the controller, and simply reference them in the template.
1416281
to
82cd457
Compare
I have rebased this branch onto the latest commit where e2e tests were still working. My hope is that I can leverage that commit for a bit longer on these strategic PRs. |
Actually, my latest changes don't work, and I've run out of time to figure out why, so I'm going to leave this PR for now. Will pick it up again sometime soon. |
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.
Needs more work - still in progress
82cd457
to
4e8e87e
Compare
4e8e87e
to
8bfaf45
Compare
f731488
to
8bfaf45
Compare
The team thinks Chris might've fixed things so they're asking to dismiss while he's out
473948e
to
fb2885d
Compare
Remove consol.log() Add additional business logic to header buttons refactor rename twig header variable param. remove console.log debug files
change assertion to isDisplayed() simplify logic in template - rename displayHeaderButtons back to displayShareButton - displayShareButton is only for share button, not for settings button - remove CSS app-settings-available and put logic directly in template ng-if fix flaky test This test asserts that the settingsMenuLink is not present, and the appropriate test should be `isPresent()` not `isDisplayed()`
fb2885d
to
c5a1172
Compare
These two test failed. The buttons are still available on the "List", "Project Settings", "Synchronize", "Import Data" and "Configuration" pages.
|
Great work Rick and everyone! Just to clarify, is this still being worked on? I did observe some of the behaviors you mentioned Rick. Thanks. |
Description
Hide Share button from My Projects and other non lexicon project pages.
Fixes #1241
Type of Change
Screenshots
Please provide screenshots / animations for any change that involves the UI. Please provide animations to demonstrate user interaction / behavior changes
Testing on your branch
Please describe how to test and/or verify your changes. Provide instructions so we can reproduce. Please also provide relevant test data as necessary. These instructions will be used for QA testing below.
Checklist
qa.languageforge.org testing
Reviewers: add/replace your name below and check the box to sign-off/attest the feature works as expected on qa.languageforge.org