summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2021-11-12 23:54:02 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2021-11-12 23:54:02 +0900
commit187696c97328ffc7997ee3eba7fd98d593e99992 (patch)
tree929ab5a1d526bcb6ca8ce96953d83f79a4750885
parentrefactor(client): use composition api for tooltip logic (diff)
downloadmisskey-187696c97328ffc7997ee3eba7fd98d593e99992.tar.gz
misskey-187696c97328ffc7997ee3eba7fd98d593e99992.tar.bz2
misskey-187696c97328ffc7997ee3eba7fd98d593e99992.zip
refactor(client): improve readability
-rw-r--r--packages/client/src/components/renote-button.vue8
1 files changed, 2 insertions, 6 deletions
diff --git a/packages/client/src/components/renote-button.vue b/packages/client/src/components/renote-button.vue
index 5ddc1602ed..af27bfca2f 100644
--- a/packages/client/src/components/renote-button.vue
+++ b/packages/client/src/components/renote-button.vue
@@ -1,8 +1,7 @@
<template>
-<button
+<button v-if="canRenote"
class="eddddedb _button canRenote"
@click="renote()"
- v-if="canRenote"
@touchstart.passive="onMouseover"
@mouseover="onMouseover"
@mouseleave="onMouseleave"
@@ -12,10 +11,7 @@
<i class="fas fa-retweet"></i>
<p class="count" v-if="count > 0">{{ count }}</p>
</button>
-<button
- v-else
- class="button _button"
->
+<button v-else class="eddddedb _button">
<i class="fas fa-ban"></i>
</button>
</template>