Making a few things more clear.

This commit is contained in:
Michael Lazar
2016-10-31 13:56:08 -07:00
parent 6a395216a3
commit e96db6e7ac
4 changed files with 13 additions and 13 deletions

View File

@@ -162,9 +162,9 @@ class SubmissionPage(Page):
@SubmissionController.register(Command('DELETE'))
@logged_in
def delete_comment(self):
"Delete a comment as long as it is not the current submission"
"Delete the selected comment"
if self.nav.absolute_index != -1:
if self.get_selected_item()['type'] == 'Comment':
self.delete_item()
else:
self.term.flash()