2020-09-07 00:35:49 -07:00
|
|
|
<template>
|
|
|
|
<div>
|
2020-11-24 02:32:42 -08:00
|
|
|
<button
|
2020-09-07 00:35:49 -07:00
|
|
|
v-if="loggedIn"
|
2020-11-24 02:32:42 -08:00
|
|
|
class="button-unstyled ReplyButton -padded -interactive"
|
2020-09-07 00:35:49 -07:00
|
|
|
:class="{'-active': replying}"
|
2020-11-24 02:32:42 -08:00
|
|
|
:title="$t('tool_tip.reply')"
|
2020-09-07 00:35:49 -07:00
|
|
|
@click.prevent="$emit('toggle')"
|
2020-11-24 02:32:42 -08:00
|
|
|
>
|
|
|
|
<FAIcon
|
|
|
|
class="fa-scale-110 fa-old-padding"
|
|
|
|
icon="reply"
|
|
|
|
/>
|
|
|
|
</button>
|
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"
|
2020-10-28 12:31:16 -07:00
|
|
|
class="ReplyButton fa-scale-110 fa-old-padding"
|
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 {
|
|
|
|
|
2020-11-24 02:32:42 -08:00
|
|
|
&:hover .svg-inline--fa,
|
|
|
|
&.-active .svg-inline--fa {
|
2020-10-19 09:38:49 -07:00
|
|
|
color: $fallback--cBlue;
|
|
|
|
color: var(--cBlue, $fallback--cBlue);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|