mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
Make private message character limit obvious on client (#10579)
* fix(messages): make character limit obvious on client Fixes #10549 * fix(messages): localize hardcoded button text
This commit is contained in:
committed by
Keith Holliday
parent
7019e32eed
commit
1134c7748b
@@ -52,8 +52,14 @@
|
|||||||
// @TODO: Implement new message header here when we fix the above
|
// @TODO: Implement new message header here when we fix the above
|
||||||
|
|
||||||
.new-message-row(v-if='selectedConversation.key && !user.flags.chatRevoked')
|
.new-message-row(v-if='selectedConversation.key && !user.flags.chatRevoked')
|
||||||
textarea(v-model='newMessage', @keyup.ctrl.enter='sendPrivateMessage()')
|
textarea(
|
||||||
button.btn.btn-secondary(@click='sendPrivateMessage()') Send
|
v-model='newMessage',
|
||||||
|
@keyup.ctrl.enter='sendPrivateMessage()',
|
||||||
|
maxlength='3000'
|
||||||
|
)
|
||||||
|
button.btn.btn-secondary(@click='sendPrivateMessage()') {{$t('send')}}
|
||||||
|
.row
|
||||||
|
span.ml-3 {{ currentLength }} / 3000
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
@@ -322,6 +328,9 @@ export default {
|
|||||||
return conversation.name.toLowerCase().indexOf(this.search.toLowerCase()) !== -1;
|
return conversation.name.toLowerCase().indexOf(this.search.toLowerCase()) !== -1;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
currentLength () {
|
||||||
|
return this.newMessage.length;
|
||||||
|
},
|
||||||
placeholderTexts () {
|
placeholderTexts () {
|
||||||
if (this.user.flags.chatRevoked) {
|
if (this.user.flags.chatRevoked) {
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user