biome format --write
This commit is contained in:
parent
8372348148
commit
9262e803ec
415 changed files with 54076 additions and 17419 deletions
|
|
@ -7,31 +7,31 @@ const ChatList = {
|
|||
components: {
|
||||
ChatListItem,
|
||||
List,
|
||||
ChatNew
|
||||
ChatNew,
|
||||
},
|
||||
computed: {
|
||||
...mapState({
|
||||
currentUser: state => state.users.currentUser
|
||||
currentUser: (state) => state.users.currentUser,
|
||||
}),
|
||||
...mapGetters(['sortedChatList'])
|
||||
...mapGetters(['sortedChatList']),
|
||||
},
|
||||
data () {
|
||||
data() {
|
||||
return {
|
||||
isNew: false
|
||||
isNew: false,
|
||||
}
|
||||
},
|
||||
created () {
|
||||
created() {
|
||||
this.$store.dispatch('fetchChats', { latest: true })
|
||||
},
|
||||
methods: {
|
||||
cancelNewChat () {
|
||||
cancelNewChat() {
|
||||
this.isNew = false
|
||||
this.$store.dispatch('fetchChats', { latest: true })
|
||||
},
|
||||
newChat () {
|
||||
newChat() {
|
||||
this.isNew = true
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
export default ChatList
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue