client/post: Require the post to not be in edit mode.

This commit is contained in:
ReAnzu 2019-04-08 13:01:42 -05:00 committed by Marcin Kurczewski
parent a48116aa05
commit a4215e35dc
1 changed files with 10 additions and 2 deletions

View File

@ -88,8 +88,16 @@ class PostMainView {
new Touch(
postContainerNode,
showPreviousImage,
showNextImage
() => {
if (!ctx.editMode) {
showPreviousImage()
}
},
() => {
if (!ctx.editMode) {
showNextImage()
}
}
)
}