From 8630f91a13e8b8f7b56d2cb3dd2b700ad5ebd6f6 Mon Sep 17 00:00:00 2001
From: Roger Braun <roger@rogerbraun.net>
Date: Sun, 30 Oct 2016 16:12:35 +0100
Subject: Add favorite-button.

---
 src/components/favorite_button/favorite_button.vue | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 src/components/favorite_button/favorite_button.vue

(limited to 'src/components/favorite_button/favorite_button.vue')

diff --git a/src/components/favorite_button/favorite_button.vue b/src/components/favorite_button/favorite_button.vue
new file mode 100644
index 00000000..0455c706
--- /dev/null
+++ b/src/components/favorite_button/favorite_button.vue
@@ -0,0 +1,14 @@
+<template>
+  <div>
+    <i :class='classes' class='favorite-button fa' v-on:click.prevent='favorite()'></i>
+    <span v-if='status.fave_num > 0'>{{status.fave_num}}</span>
+  </div>
+</template>
+
+<script src="./favorite_button.js" ></script>
+
+<style>
+ .favorite-button {
+     cursor: pointer
+ }
+</style>
-- 
cgit v1.2.3-70-g09d2

