aboutsummaryrefslogtreecommitdiff
path: root/src/components/retweet_button/retweet_button.vue
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2018-08-28 13:42:44 +0300
committerHenry Jameson <me@hjkos.com>2018-08-28 13:42:44 +0300
commit68d15f665e178ca37181b66beae5d833db08df52 (patch)
tree8406e1ab9b2304409d9084b4f32c4697c0aad1fe /src/components/retweet_button/retweet_button.vue
parent226849b26ec0d6cbb752a1e4ae52577ccb00bd84 (diff)
Show lock icon instead of hiding repeat button, tusky-style. Added hint
explaining what's going on. Fixes favorite button jumping left and right depending on post visibility
Diffstat (limited to 'src/components/retweet_button/retweet_button.vue')
-rw-r--r--src/components/retweet_button/retweet_button.vue11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/components/retweet_button/retweet_button.vue b/src/components/retweet_button/retweet_button.vue
index f5b00599..ee5722bd 100644
--- a/src/components/retweet_button/retweet_button.vue
+++ b/src/components/retweet_button/retweet_button.vue
@@ -1,7 +1,12 @@
<template>
- <div v-if="loggedIn && visibility !== 'private' && visibility !== 'direct'">
- <i :class='classes' class='icon-retweet rt-active' v-on:click.prevent='retweet()'></i>
- <span v-if='status.repeat_num > 0'>{{status.repeat_num}}</span>
+ <div v-if="loggedIn">
+ <template v-if="visibility !== 'private' && visibility !== 'direct'">
+ <i :class='classes' class='icon-retweet rt-active' v-on:click.prevent='retweet()'></i>
+ <span v-if='status.repeat_num > 0'>{{status.repeat_num}}</span>
+ </template>
+ <template v-else>
+ <i :class='classes' class='icon-lock' :title="$t('timeline.no_retweet_hint')"></i>
+ </template>
</div>
<div v-else-if="!loggedIn">
<i :class='classes' class='icon-retweet'></i>