mirror of
https://github.com/paricafe/misskey.git
synced 2024-11-29 15:56:43 -06:00
f6154dc0af
Co-authored-by: MeiMei <30769358+mei23@users.noreply.github.com> Co-authored-by: Satsuki Yanagi <17376330+u1-liquid@users.noreply.github.com>
32 lines
688 B
Vue
32 lines
688 B
Vue
<template>
|
|
<mk-emoji :emoji="reaction.startsWith(':') ? null : reaction" :name="reaction.startsWith(':') ? reaction.substr(1, reaction.length - 2) : null" :is-reaction="true" :custom-emojis="customEmojis" :normal="true" :no-style="noStyle"/>
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
import Vue from 'vue';
|
|
import i18n from '../i18n';
|
|
export default Vue.extend({
|
|
i18n,
|
|
props: {
|
|
reaction: {
|
|
type: String,
|
|
required: true
|
|
},
|
|
noStyle: {
|
|
type: Boolean,
|
|
required: false,
|
|
default: false
|
|
},
|
|
},
|
|
data() {
|
|
return {
|
|
customEmojis: []
|
|
};
|
|
},
|
|
created() {
|
|
this.$root.getMeta().then(meta => {
|
|
if (meta && meta.emojis) this.customEmojis = meta.emojis;
|
|
});
|
|
},
|
|
});
|
|
</script>
|