client/posts: don't show notes on flash posts

This commit is contained in:
rr- 2016-08-31 22:20:21 +02:00
parent acd989cabb
commit 988664117a
2 changed files with 3 additions and 2 deletions

View file

@ -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'),

View file

@ -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();
}