2018-02-07 02:00:55 -08:00
|
|
|
<template>
|
2018-02-12 19:32:00 -08:00
|
|
|
<span class="mk-reaction-icon">
|
2018-02-07 02:00:55 -08:00
|
|
|
<img v-if="reaction == 'like'" src="/assets/reactions/like.png" alt="%i18n:common.reactions.like%">
|
|
|
|
<img v-if="reaction == 'love'" src="/assets/reactions/love.png" alt="%i18n:common.reactions.love%">
|
|
|
|
<img v-if="reaction == 'laugh'" src="/assets/reactions/laugh.png" alt="%i18n:common.reactions.laugh%">
|
|
|
|
<img v-if="reaction == 'hmm'" src="/assets/reactions/hmm.png" alt="%i18n:common.reactions.hmm%">
|
|
|
|
<img v-if="reaction == 'surprise'" src="/assets/reactions/surprise.png" alt="%i18n:common.reactions.surprise%">
|
|
|
|
<img v-if="reaction == 'congrats'" src="/assets/reactions/congrats.png" alt="%i18n:common.reactions.congrats%">
|
|
|
|
<img v-if="reaction == 'angry'" src="/assets/reactions/angry.png" alt="%i18n:common.reactions.angry%">
|
|
|
|
<img v-if="reaction == 'confused'" src="/assets/reactions/confused.png" alt="%i18n:common.reactions.confused%">
|
2018-08-11 05:08:34 -07:00
|
|
|
<img v-if="reaction == 'rip'" src="/assets/reactions/rip.png" alt="%i18n:common.reactions.rip%">
|
2018-06-18 01:25:20 -07:00
|
|
|
<template v-if="reaction == 'pudding'">
|
|
|
|
<img v-if="$store.getters.isSignedIn && $store.state.settings.iLikeSushi" src="/assets/reactions/sushi.png" alt="%i18n:common.reactions.pudding%">
|
|
|
|
<img v-else src="/assets/reactions/pudding.png" alt="%i18n:common.reactions.pudding%">
|
|
|
|
</template>
|
2018-02-07 02:00:55 -08:00
|
|
|
</span>
|
|
|
|
</template>
|
|
|
|
|
2018-02-12 19:32:00 -08:00
|
|
|
<script lang="ts">
|
|
|
|
import Vue from 'vue';
|
|
|
|
export default Vue.extend({
|
|
|
|
props: ['reaction']
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
2018-02-07 02:00:55 -08:00
|
|
|
<style lang="stylus" scoped>
|
2018-02-12 19:32:00 -08:00
|
|
|
.mk-reaction-icon
|
2018-02-07 02:00:55 -08:00
|
|
|
img
|
|
|
|
vertical-align middle
|
|
|
|
width 1em
|
|
|
|
height 1em
|
|
|
|
</style>
|