Hide command

This commit is contained in:
Nemanja Nedeljkovic
2018-01-11 09:36:33 +01:00
parent 6fe6d517a2
commit 54fa6577c9
2 changed files with 8 additions and 0 deletions

View File

@@ -155,6 +155,13 @@ class Page(object):
self.nav.cursor_index = 0
self.nav.inverted = True
@PageController.register(Command('HIDE'))
@logged_in
def hide(self):
data = self.get_selected_item()
with self.term.loader('Hiding'):
data['object'].hide()
@PageController.register(Command('UPVOTE'))
@logged_in
def upvote(self):