SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 614bc1a7 authored by Jean-Sébastien Caux's avatar Jean-Sébastien Caux
Browse files

Debug: new reply/formward buttons only activate the one modal

parent b488c75c
No related branches found
No related tags found
No related merge requests found
...@@ -415,11 +415,9 @@ export default { ...@@ -415,11 +415,9 @@ export default {
this.form.attachments = this.originalmessage.attachment_files this.form.attachments = this.originalmessage.attachment_files
} }
if (this.originalmessage.data.hasOwnProperty("body-html")) { if (this.originalmessage.data.hasOwnProperty("body-html")) {
console.log('Putting html')
this.form.body_html += (this.$sanitize(this.originalmessage.data["body-html"])) this.form.body_html += (this.$sanitize(this.originalmessage.data["body-html"]))
} }
else { else {
console.log('Putting plain')
this.form.body_html += (this.$sanitize(this.originalmessage.data["body-plain"])) this.form.body_html += (this.$sanitize(this.originalmessage.data["body-plain"]))
} }
this.form.body_html += '</blockquote>' this.form.body_html += '</blockquote>'
......
...@@ -11,13 +11,13 @@ ...@@ -11,13 +11,13 @@
<ul class="list-inline m-2"> <ul class="list-inline m-2">
<li class="list-inline-item"> <li class="list-inline-item">
<b-button <b-button
v-b-modal.modal-reply v-b-modal="'modal-reply-' + message.uuid"
variant="primary" variant="primary"
> >
Reply Reply
</b-button> </b-button>
<b-modal <b-modal
id="modal-reply" :id="'modal-reply-' + message.uuid"
size="xl" size="xl"
title="Reply" title="Reply"
hide-header-close hide-header-close
...@@ -34,14 +34,14 @@ ...@@ -34,14 +34,14 @@
</li> </li>
<li class="list-inline-item"> <li class="list-inline-item">
<b-button <b-button
v-b-modal.modal-forward v-b-modal="'modal-forward-' + message.uuid"
variant="dark" variant="dark"
text-variant="white" text-variant="white"
> >
Forward Forward
</b-button> </b-button>
<b-modal <b-modal
id="modal-forward" :id="'modal-forward-' + message.uuid"
size="xl" size="xl"
title="Forward" title="Forward"
hide-header-close hide-header-close
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment