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

Delete a post whilst in the Customizer #137

Closed
danielbachhuber opened this issue May 12, 2016 · 7 comments

Comments

Projects
None yet
4 participants
@danielbachhuber
Copy link
Contributor

commented May 12, 2016

It would be great if I could trash or delete a post whilst in the Customizer.

I recognize that this task isn't small, and will need some UX exploration, etc. before it can go to development.

@westonruter

This comment has been minimized.

Copy link
Contributor

commented May 12, 2016

Definitely. This is something we'll work on after #134 is merged for adding post insertion.

@westonruter westonruter added this to the 0.7 milestone May 12, 2016

@westonruter

This comment has been minimized.

Copy link
Contributor

commented May 12, 2016

We'll also have the control for managing the post status (#40) which could potentially include “trash” as one of the options until a dedicated button/UI is provided for deletion.

@danielbachhuber

This comment has been minimized.

Copy link
Contributor Author

commented May 12, 2016

We'll also have the control for managing the post status (#40) which could potentially include “trash” as one of the options until a dedicated button/UI is provided for deletion.

Oh, huh. That kinda sucks, but could work as an interim solution.

@westonruter

This comment has been minimized.

Copy link
Contributor

commented May 12, 2016

It's just a matter of the UI. Implementing trash would be simple, as it would be just setting the post_status for the post setting object to trash. So yeah, I don't see why a delete button and the post status dropdown couldn't be done at the same time.

@westonruter

This comment has been minimized.

Copy link
Contributor

commented May 12, 2016

As for the behavior of clicking “Trash” I think it should:

  1. Set the post_status for the post setting to trash.
  2. Trigger a refresh of the previous (should happen automatically).
  3. Collapse the post section for the trashed post.
  4. Add a deleted style to the post section in the list of posts in the panel, perhaps with 50% opacity.
  5. Upon clicking Save, the post section should be removed from the panel entirely.
@danielbachhuber

This comment has been minimized.

Copy link
Contributor Author

commented Jul 13, 2016

@westonruter Did we end up with a button here, or just the status dropdown?

@westonruter

This comment has been minimized.

Copy link
Contributor

commented Jul 13, 2016

@danielbachhuber this is being discovered in #172.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.