client/posts: don't show notes on flash posts
This commit is contained in:
parent
acd989cabb
commit
988664117a
2 changed files with 3 additions and 2 deletions
|
@ -28,7 +28,8 @@ class PostEditSidebarControl extends events.EventTarget {
|
|||
canEditPostTags: api.hasPrivilege('posts:edit:tags'),
|
||||
canEditPostRelations: api.hasPrivilege('posts:edit:relations'),
|
||||
canEditPostNotes: api.hasPrivilege('posts:edit:notes') &&
|
||||
post.type !== 'video',
|
||||
post.type !== 'video' &&
|
||||
post.type !== 'flash',
|
||||
canEditPostFlags: api.hasPrivilege('posts:edit:flags'),
|
||||
canEditPostContent: api.hasPrivilege('posts:edit:content'),
|
||||
canEditPostThumbnail: api.hasPrivilege('posts:edit:thumbnail'),
|
||||
|
|
|
@ -51,7 +51,7 @@ class PostView {
|
|||
postContainerNode.querySelector('.post-overlay'),
|
||||
ctx.post);
|
||||
|
||||
if (ctx.post.type === 'video') {
|
||||
if (ctx.post.type === 'video' || ctx.post.type === 'flash') {
|
||||
this._postContentControl.disableOverlay();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue