diff --git a/webapp/components/EmotionButton/EmotionButton.vue b/webapp/components/EmotionButton/EmotionButton.vue new file mode 100644 index 000000000..97eabd7df --- /dev/null +++ b/webapp/components/EmotionButton/EmotionButton.vue @@ -0,0 +1,55 @@ + + + + + + {{ $t(`contribution.emotions-label.${emotion}`) }} + {{ emotionCount }}x + + + + + + diff --git a/webapp/components/Emotions/Emotions.vue b/webapp/components/Emotions/Emotions.vue index 5c65a9c2a..96389d10d 100644 --- a/webapp/components/Emotions/Emotions.vue +++ b/webapp/components/Emotions/Emotions.vue @@ -1,29 +1,26 @@ - - + - - - + :emojiPath="iconPath(emotion)" + :emotion="emotion" + :emotionCount="PostsEmotionsCountByEmotion[emotion]" + @toggleEmotion="toggleEmotion" + /> + + + + diff --git a/webapp/components/EmotionsButton/EmotionsButton.vue b/webapp/components/EmotionsButton/EmotionsButton.vue deleted file mode 100644 index 04d3f7d96..000000000 --- a/webapp/components/EmotionsButton/EmotionsButton.vue +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - - - {{ $t(`contribution.emotions-label.${emotion}`) }} - - {{ PostsEmotionsCountByEmotion[emotion] }}x - - - - - - diff --git a/webapp/pages/post/_id/_slug/index.vue b/webapp/pages/post/_id/_slug/index.vue index e6b6eef44..1d7ddb310 100644 --- a/webapp/pages/post/_id/_slug/index.vue +++ b/webapp/pages/post/_id/_slug/index.vue @@ -47,13 +47,9 @@ - + -
{{ emotionCount }}x
{{ $t(`contribution.emotions-label.${emotion}`) }}
- {{ PostsEmotionsCountByEmotion[emotion] }}x -