2020-09-07 00:35:49 -07:00
|
|
|
<template>
|
2020-11-26 08:23:53 -08:00
|
|
|
<div class="ReplyButton">
|
2020-11-24 02:32:42 -08:00
|
|
|
<button
|
2020-09-07 00:35:49 -07:00
|
|
|
v-if="loggedIn"
|
2020-11-26 08:23:53 -08:00
|
|
|
class="button-unstyled 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-11-26 13:01:16 -08:00
|
|
|
<span v-else>
|
|
|
|
<FAIcon
|
|
|
|
icon="reply"
|
|
|
|
class="fa-scale-110 fa-old-padding"
|
|
|
|
:title="$t('tool_tip.reply')"
|
|
|
|
/>
|
|
|
|
</span>
|
2020-11-26 08:23:53 -08:00
|
|
|
<span
|
|
|
|
v-if="status.replies_count > 0"
|
|
|
|
class="action-counter"
|
|
|
|
>
|
2020-09-07 00:35:49 -07:00
|
|
|
{{ 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 {
|
2020-11-26 08:23:53 -08:00
|
|
|
display: flex;
|
|
|
|
|
|
|
|
> :first-child {
|
|
|
|
padding: 10px;
|
2020-11-26 13:01:16 -08:00
|
|
|
margin: -10px -8px -10px -10px;
|
2020-11-26 08:23:53 -08:00
|
|
|
}
|
2020-10-19 09:38:49 -07:00
|
|
|
|
2020-11-26 08:23:53 -08:00
|
|
|
.action-counter {
|
|
|
|
pointer-events: none;
|
|
|
|
user-select: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.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);
|
|
|
|
}
|
|
|
|
}
|
2020-11-26 08:23:53 -08:00
|
|
|
|
2020-10-19 09:38:49 -07:00
|
|
|
}
|
|
|
|
</style>
|