aboutsummaryrefslogtreecommitdiff
path: root/src/components/reply_button/reply_button.vue
blob: a0ac89416b875c060d343622b1a2edcb56b30822 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<template>
  <div>
    <FAIcon
      v-if="loggedIn"
      class="ReplyButton fa-scale-110 fa-old-padding -interactive"
      icon="reply"
      :title="$t('tool_tip.reply')"
      :class="{'-active': replying}"
      @click.prevent="$emit('toggle')"
    />
    <FAIcon
      v-else
      icon="reply"
      class="ReplyButton fa-scale-110 fa-old-padding"
      :title="$t('tool_tip.reply')"
    />
    <span v-if="status.replies_count > 0">
      {{ status.replies_count }}
    </span>
  </div>
</template>

<script src="./reply_button.js"></script>

<style lang="scss">
@import '../../_variables.scss';

.ReplyButton {
  &.-interactive {
    cursor: pointer;

    &:hover,
    &.-active {
      color: $fallback--cBlue;
      color: var(--cBlue, $fallback--cBlue);
    }
  }
}
</style>