client/post: Require the post to not be in edit mode.
This commit is contained in:
parent
a48116aa05
commit
a4215e35dc
1 changed files with 10 additions and 2 deletions
|
@ -88,8 +88,16 @@ class PostMainView {
|
|||
|
||||
new Touch(
|
||||
postContainerNode,
|
||||
showPreviousImage,
|
||||
showNextImage
|
||||
() => {
|
||||
if (!ctx.editMode) {
|
||||
showPreviousImage()
|
||||
}
|
||||
},
|
||||
() => {
|
||||
if (!ctx.editMode) {
|
||||
showNextImage()
|
||||
}
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue