-
Notifications
You must be signed in to change notification settings - Fork 3
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
feat(content-distribution): remove "Quick Edit" from linked posts #200
base: trunk
Are you sure you want to change the base?
Conversation
Because quick edit let's the user do stuff we don't want on linked posts, this justs removes it. On a node site check that all linked posts don't show "quick edit" on hover on the posts listing. Networked posts that are not linked should have it.
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.
Works! Left a minor non-blocking comment.
use Newspack\Data_Events; | ||
use Newspack_Network\Admin as Network_Admin; | ||
use Newspack_Network\Content_Distribution as Content_Distribution_Class; |
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.
We've not been using an alias for this in other files, should we start doing so? I thin it'd be good to standardize this.
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 agree. It's super confusing naming without it, so that's why I aliased it, but I'm up for either. Do you have a preference?
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'm ok with the alias, do you mind doing the same for other files?
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.
Not at all. Will do and push to this one 👍
I aliased all the |
Because quick edit let's the user do stuff we don't want on linked posts, this just removes it.
How to test
On a node site check that all linked posts don't show "quick edit" on hover on the posts listing. Networked posts that are not linked should still have it.
Posts not networked should also have it (note that distributor also hides it, so not those posts).