Remove edit menu item if posting is disabled.

This commit is contained in:
ccd0 2016-02-14 14:08:47 -08:00
parent 0a49c5a0eb
commit 5e579db518

View File

@ -15,10 +15,9 @@ QR.oekaki =
open: (post) ->
QR.oekaki.menu.post = post
{file} = post
!!file and (file.isImage or file.isVideo)
QR.postingIsEnabled and !!file and (file.isImage or file.isVideo)
editFile: ->
return unless QR.postingIsEnabled
{post} = QR.oekaki.menu
QR.quote.call post.nodes.root
{isVideo} = post.file