scragg0x / realms-wiki

Git based wiki inspired by Gollum
http://realms.io
GNU General Public License v2.0
833 stars 90 forks source link

Implement delete page #83

Closed alvinchow86 closed 8 years ago

alvinchow86 commented 8 years ago

Hook up the "Delete Page" button and get it working.

This is rebased off of https://github.com/scragg0x/realms-wiki/pull/81 because I need some changes from there, to get the actual difference see https://github.com/doordash/realms-wiki/compare/rename-page-fix...doordash:delete-page?expand=1

image image

More than happy to make any tweaks or style fixes if needed

scragg0x commented 8 years ago

Very nice thanks!

alvinchow86 commented 8 years ago

Thanks! BTW there was one more commit in the other branch https://github.com/scragg0x/realms-wiki/pull/81, https://github.com/doordash/realms-wiki/commit/b517e7e71441a5d9c1414e1774c060712920d5df, that we may want to get in. It fixes a bug with rename page, where every edit did a "Rename/Move" operation (if your page name has upper case letters)

scragg0x commented 8 years ago

Oh thanks, I just saw that. I should start at the bottom of the list.

alvinchow86 commented 8 years ago

One more improvement idea - it might be less obtrusive to avoid the second "delete confirmation popup" and do a flashmessage instead or something

scragg0x commented 8 years ago

I agree