Remove edit menu item if posting is disabled.
This commit is contained in:
parent
0a49c5a0eb
commit
5e579db518
@ -15,10 +15,9 @@ QR.oekaki =
|
|||||||
open: (post) ->
|
open: (post) ->
|
||||||
QR.oekaki.menu.post = post
|
QR.oekaki.menu.post = post
|
||||||
{file} = post
|
{file} = post
|
||||||
!!file and (file.isImage or file.isVideo)
|
QR.postingIsEnabled and !!file and (file.isImage or file.isVideo)
|
||||||
|
|
||||||
editFile: ->
|
editFile: ->
|
||||||
return unless QR.postingIsEnabled
|
|
||||||
{post} = QR.oekaki.menu
|
{post} = QR.oekaki.menu
|
||||||
QR.quote.call post.nodes.root
|
QR.quote.call post.nodes.root
|
||||||
{isVideo} = post.file
|
{isVideo} = post.file
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user