diff --git a/src/components/post_status_form/post_status_form.js b/src/components/post_status_form/post_status_form.js index c1213fa9..8ac5ccd9 100644 --- a/src/components/post_status_form/post_status_form.js +++ b/src/components/post_status_form/post_status_form.js @@ -106,6 +106,9 @@ const PostStatusForm = { }, charactersLeft () { return this.statusLengthLimit - this.statusLength + }, + isOverLengthLimit () { + return this.hasStatusLengthLimit && (this.statusLength > this.statusLengthLimit) } }, methods: { diff --git a/src/components/post_status_form/post_status_form.vue b/src/components/post_status_form/post_status_form.vue index a759bb53..aca9e9c8 100644 --- a/src/components/post_status_form/post_status_form.vue +++ b/src/components/post_status_form/post_status_form.vue @@ -19,9 +19,11 @@
-

{{ charactersLeft }}

+

{{ charactersLeft }}

+

{{ charactersLeft }}

+