From 68d15f665e178ca37181b66beae5d833db08df52 Mon Sep 17 00:00:00 2001
From: Henry Jameson <me@hjkos.com>
Date: Tue, 28 Aug 2018 13:42:44 +0300
Subject: 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

---
 src/components/retweet_button/retweet_button.vue | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

(limited to 'src/components/retweet_button/retweet_button.vue')

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>
-- 
cgit v1.2.3-70-g09d2

