Follow @Tirokk PR review suggestions

- Favor lowercase for words in a sentence after the first
- Use exclamation marks for successful actions that use a toastr
- place events at the end of the list on components
- place class above events
- it would be nice to come to a consensus based on best practices, like
  I had a doubt and places the class definition below the props, is that
what others do?
This commit is contained in:
mattwr18 2020-01-31 13:09:37 +01:00
parent 701411e270
commit c8c71a52c6
4 changed files with 8 additions and 8 deletions

View File

@ -57,11 +57,11 @@
<base-button
:title="this.$t('post.comment.reply')"
icon="level-down"
@click.prevent="reply"
v-scroll-to="'.editor'"
circle
class="reply-button"
circle
size="small"
v-scroll-to="'.editor'"
@click.prevent="reply"
></base-button>
</ds-card>
</div>

View File

@ -7,16 +7,16 @@
<ds-space margin-bottom="large" />
<div v-if="post.comments && post.comments.length" id="comments" class="comments">
<comment
@reply="reply"
v-for="comment in post.comments"
:key="comment.id"
:comment="comment"
:post="post"
:routeHash="routeHash"
class="comment-tag"
@deleteComment="updateCommentList"
@updateComment="updateCommentList"
@toggleNewCommentForm="toggleNewCommentForm"
class="comment-tag"
@reply="reply"
/>
</div>
</div>

View File

@ -279,7 +279,7 @@
},
"comment": {
"submit": "Kommentiere",
"submitted": "Kommentar Gesendet",
"submitted": "Kommentar gesendet!",
"updated": "Änderungen gespeichert",
"reply": "Antworten"
},

View File

@ -444,8 +444,8 @@
},
"comment": {
"submit": "Comment",
"submitted": "Comment Submitted",
"updated": "Changes Saved",
"submitted": "Comment submitted!",
"updated": "Changes saved!",
"reply": "Reply"
},
"edited": "edited"