Add favorite-button.

This commit is contained in:
Roger Braun 2016-10-30 16:12:35 +01:00
parent b96b5eb327
commit 8630f91a13
7 changed files with 85 additions and 11 deletions

View file

@ -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>