Skip to content

Commit

Permalink
[F] comments consisting solely of spaces should not be sent
Browse files Browse the repository at this point in the history
  • Loading branch information
LS-KR committed Apr 19, 2024
1 parent db43dc1 commit f47574c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/views/ProfileComments.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
<div id="add-comment" v-if="p.id != 'tdor'">
<textarea id="comment-textarea" v-model="textInput" :placeholder="i18n.nav_comment_placeholder"
@input="resizeInput" ref="input"/>
<div id="send-comment-btn" v-if="textInput.length > 0">
<span class="char-count unselectable">{{textInput.length}} {{i18n.nav_comment_status}}</span>
<div id="send-comment-btn" v-if="textInput.trim().length > 0">
<span class="char-count unselectable">{{textInput.trim().length}} {{i18n.nav_comment_status}}</span>
<IFasPaperPlane class="icon" @click="btnSend"/>
</div>

Expand Down

0 comments on commit f47574c

Please sign in to comment.