2020-09-07 00:35:49 -07:00
|
|
|
<template>
|
|
|
|
<div>
|
2020-10-19 09:38:49 -07:00
|
|
|
<FAIcon
|
2020-09-07 00:35:49 -07:00
|
|
|
v-if="loggedIn"
|
2020-10-19 09:38:49 -07:00
|
|
|
class="ReplyButton button-icon -interactive"
|
|
|
|
icon="reply"
|
|
|
|
size="lg"
|
2020-09-07 00:35:49 -07:00
|
|
|
:title="$t('tool_tip.reply')"
|
|
|
|
:class="{'-active': replying}"
|
|
|
|
@click.prevent="$emit('toggle')"
|
|
|
|
/>
|
2020-10-19 09:38:49 -07:00
|
|
|
<FAIcon
|
2020-09-07 00:35:49 -07:00
|
|
|
v-else
|
2020-10-19 09:38:49 -07:00
|
|
|
icon="reply"
|
|
|
|
size="lg"
|
|
|
|
class="ReplyButton button-icon"
|
2020-09-07 00:35:49 -07:00
|
|
|
:title="$t('tool_tip.reply')"
|
|
|
|
/>
|
|
|
|
<span v-if="status.replies_count > 0">
|
|
|
|
{{ status.replies_count }}
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script src="./reply_button.js"></script>
|
2020-10-19 09:38:49 -07:00
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
@import '../../_variables.scss';
|
|
|
|
|
|
|
|
.ReplyButton {
|
|
|
|
&.-interactive {
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&.-active {
|
|
|
|
color: $fallback--cBlue;
|
|
|
|
color: var(--cBlue, $fallback--cBlue);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|