2016-11-14 02:42:56 +11:00
|
|
|
<template>
|
2018-02-02 09:45:29 +11:00
|
|
|
<div v-if="loggedIn">
|
2018-04-01 04:14:36 +10:00
|
|
|
<i :class='classes' class='icon-retweet rt-active' v-on:click.prevent='retweet()'></i>
|
2018-02-02 09:45:29 +11:00
|
|
|
<span v-if='status.repeat_num > 0'>{{status.repeat_num}}</span>
|
|
|
|
</div>
|
|
|
|
<div v-else>
|
2018-04-01 04:14:36 +10:00
|
|
|
<i :class='classes' class='icon-retweet'></i>
|
2016-11-14 02:42:56 +11:00
|
|
|
<span v-if='status.repeat_num > 0'>{{status.repeat_num}}</span>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script src="./retweet_button.js" ></script>
|
|
|
|
|
2018-04-01 12:28:20 +10:00
|
|
|
<style lang="scss">
|
|
|
|
@import '../../_variables.scss';
|
|
|
|
.rt-active {
|
2018-04-08 02:30:27 +10:00
|
|
|
cursor: pointer;
|
|
|
|
animation-duration: 0.6s;
|
|
|
|
&:hover {
|
2018-04-01 12:28:20 +10:00
|
|
|
color: $fallback--cGreen;
|
|
|
|
color: var(--cGreen, $fallback--cGreen);
|
2018-04-08 02:30:27 +10:00
|
|
|
}
|
|
|
|
}
|
|
|
|
.icon-retweet.retweeted {
|
|
|
|
color: $fallback--cGreen;
|
|
|
|
color: var(--cGreen, $fallback--cGreen);
|
2018-04-01 12:28:20 +10:00
|
|
|
}
|
2016-11-14 02:42:56 +11:00
|
|
|
</style>
|