Prevents a timeline entry's modal to show in certain cases.

Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
feature/noid/sql-rewrite-0929
Cyrille Bollu 2019-09-12 13:29:26 +02:00 zatwierdzone przez Maxence Lange
rodzic c3eb2f8f2a
commit 115a8f87db
1 zmienionych plików z 6 dodań i 2 usunięć

Wyświetl plik

@ -43,7 +43,7 @@ export default {
TimelinePost
},
props: {
item: { type: Object, default: () => {} },
item: { type: Object, default: () => {} }
},
data() {
return {
@ -100,7 +100,11 @@ export default {
}
},
methods: {
showModal() {
showModal(event) {
// Do not show the timeline entry's modal if we click on a link, an attachment's miniature, or the post's author name
if (event.target.tagName === 'A' || event.target.tagName === 'IMG' || event.target.className.indexOf('post-author') !== -1) {
return
}
this.modal = true
},
closeModal() {