2020-09-07 07:35:49 +00:00
|
|
|
<template>
|
|
|
|
<div>
|
2020-10-19 16:38:49 +00:00
|
|
|
<FAIcon
|
2020-09-07 07:35:49 +00:00
|
|
|
v-if="loggedIn"
|
2020-10-28 19:31:16 +00:00
|
|
|
class="ReplyButton fa-scale-110 fa-old-padding -interactive"
|
2020-10-19 16:38:49 +00:00
|
|
|
icon="reply"
|
2020-09-07 07:35:49 +00:00
|
|
|
:title="$t('tool_tip.reply')"
|
|
|
|
:class="{'-active': replying}"
|
|
|
|
@click.prevent="$emit('toggle')"
|
|
|
|
/>
|
2020-10-19 16:38:49 +00:00
|
|
|
<FAIcon
|
2020-09-07 07:35:49 +00:00
|
|
|
v-else
|
2020-10-19 16:38:49 +00:00
|
|
|
icon="reply"
|
2020-10-28 19:31:16 +00:00
|
|
|
class="ReplyButton fa-scale-110 fa-old-padding"
|
2020-09-07 07:35:49 +00: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 16:38:49 +00:00
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
@import '../../_variables.scss';
|
|
|
|
|
|
|
|
.ReplyButton {
|
|
|
|
&.-interactive {
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&.-active {
|
|
|
|
color: $fallback--cBlue;
|
|
|
|
color: var(--cBlue, $fallback--cBlue);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|