mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
Sept 18 fixes (#9051)
* Added hover state to buy buttons * Translated profile * Fixed sending private message from member modal * Added payment functions * Added translation to home page * Fixed translation * Some front page styles * Fixed inbox sorting and searching * Added seasonals * Fixed buy gem modal conflict * Fixed paypal link * Fixed footer style crossover * Fixed quest update * Fixed sanity
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
h4(v-once) {{$t('emptyMessagesLine1')}}
|
||||
p(v-once) {{$t('emptyMessagesLine2')}}
|
||||
.conversations(v-if='filtersConversations.length > 0')
|
||||
.conversation(v-for='conversation in conversations', @click='selectConversation(conversation.key)',
|
||||
.conversation(v-for='conversation in filtersConversations', @click='selectConversation(conversation.key)',
|
||||
:class="{active: selectedConversation === conversation.key}")
|
||||
div
|
||||
span(:class="userLevelStyle(conversation)") {{conversation.name}}
|
||||
@@ -213,6 +213,11 @@ export default {
|
||||
conversations[userId].date = message.timestamp;
|
||||
}
|
||||
|
||||
conversations = sortBy(conversations, [(o) => {
|
||||
return moment(o.date).toDate();
|
||||
}]);
|
||||
conversations = conversations.reverse();
|
||||
|
||||
return conversations;
|
||||
},
|
||||
currentMessages () {
|
||||
@@ -220,7 +225,7 @@ export default {
|
||||
return this.conversations[this.selectedConversation].messages;
|
||||
},
|
||||
filtersConversations () {
|
||||
if (!this.search) return Object.values(this.conversations);
|
||||
if (!this.search) return this.conversations;
|
||||
return filter(this.conversations, (conversation) => {
|
||||
return conversation.name.toLowerCase().indexOf(this.search.toLowerCase()) !== -1;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user