mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-13 11:03:09 +02:00
2511114c28
Resolve #5846
22 lines
486 B
Vue
22 lines
486 B
Vue
<template>
|
|
<mk-emoji :emoji="reaction.startsWith(':') ? null : reaction" :name="reaction.startsWith(':') ? reaction.substr(1, reaction.length - 2) : null" :is-reaction="true" :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
|
|
},
|
|
},
|
|
});
|
|
</script>
|