},
props: {
comment: Object,
+ preview: { type: Boolean, default: false },
},
created: function () {
if (this.comment._displayForce) {
<span class="glyphicon glyphicon-share-alt rotate180deg" aria-hidden="true"></span> <span>ここに返信</span>
</button>
- <span :class="['dropdown', { open: showShareButtons }]">
+ <span v-if="!preview" :class="['dropdown', { open: showShareButtons }]">
<button title="share" @click="toggleShareButtons">
<span class="glyphicon glyphicon-share-alt" aria-hidden="true"></span> <span>共有</span>
</button>
<script type="text/x-template" id="comment-form-template">
<div class="comment-form">
<div class="preview" v-if="isPreviewVisible">
- <comment :comment="preview"></comment>
+ <comment :comment="preview" :preview="true"></comment>
</div>
[%- INCLUDE common/comment/comment_form -%]
</div>