mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 07:07:35 +01:00
Remove Like action from inbox chat messages (#10181)
There is no API endpoint for this action and seems rather useless for private messages anyway
This commit is contained in:
committed by
Matteo Pagliazzi
parent
70c539cc81
commit
a309e48183
@@ -14,7 +14,7 @@ div
|
|||||||
p.time {{msg.timestamp | timeAgo}}
|
p.time {{msg.timestamp | timeAgo}}
|
||||||
.text(v-markdown='msg.text')
|
.text(v-markdown='msg.text')
|
||||||
hr
|
hr
|
||||||
.action(@click='like()', v-if='msg.likes', :class='{active: msg.likes[user._id]}')
|
.action(@click='like()', v-if='!inbox && msg.likes', :class='{active: msg.likes[user._id]}')
|
||||||
.svg-icon(v-html="icons.like")
|
.svg-icon(v-html="icons.like")
|
||||||
span(v-if='!msg.likes[user._id]') {{ $t('like') }}
|
span(v-if='!msg.likes[user._id]') {{ $t('like') }}
|
||||||
span(v-if='msg.likes[user._id]') {{ $t('liked') }}
|
span(v-if='msg.likes[user._id]') {{ $t('liked') }}
|
||||||
@@ -235,7 +235,7 @@ export default {
|
|||||||
message.likes[this.user._id] = !message.likes[this.user._id];
|
message.likes[this.user._id] = !message.likes[this.user._id];
|
||||||
}
|
}
|
||||||
|
|
||||||
this.$emit('messaged-liked', message);
|
this.$emit('message-liked', message);
|
||||||
},
|
},
|
||||||
copyAsTodo (message) {
|
copyAsTodo (message) {
|
||||||
this.$root.$emit('habitica::copy-as-todo', message);
|
this.$root.$emit('habitica::copy-as-todo', message);
|
||||||
|
|||||||
Reference in New Issue
Block a user