UX: Hide the read indicator if read count is zero

UX: Hide the read indicator if read count is zero

diff --git a/app/assets/javascripts/discourse/widgets/post-menu.js.es6 b/app/assets/javascripts/discourse/widgets/post-menu.js.es6
index db2ac3b..eb14943 100644
--- a/app/assets/javascripts/discourse/widgets/post-menu.js.es6
+++ b/app/assets/javascripts/discourse/widgets/post-menu.js.es6
@@ -69,15 +69,14 @@ registerButton("read-count", attrs => {
 });
 
 registerButton("read", attrs => {
-  const disabled = attrs.readCount === 0;
-  if (attrs.showReadIndicator) {
+  const readBySomeone = attrs.readCount > 0;
+  if (attrs.showReadIndicator && readBySomeone) {
     return {
       action: "toggleWhoRead",
       title: "post.controls.read_indicator",
       icon: "book-reader",
       before: "read-count",
-      addContainer: false,
-      disabled
+      addContainer: false
     };
   }
 });

GitHub sha: f9ee6e92

1 Like