UX: reduce show dismiss.. at top of unread/new to 15

UX: reduce show dismiss.. at top of unread/new to 15

Previously we would require 30 unread or new topic to show the button at the top.

From bb4ef644bfe889eb450944ba4dd39896083e18ac Mon Sep 17 00:00:00 2001
From: Sam Saffron <sam.saffron@gmail.com>
Date: Tue, 11 Dec 2018 14:11:54 +1100
Subject: [PATCH] UX: reduce show dismiss.. at top of unread/new to 15

Previously we would require 30 unread or new topic to show the button at the top.

diff --git a/app/assets/javascripts/discourse/controllers/discovery/topics.js.es6 b/app/assets/javascripts/discourse/controllers/discovery/topics.js.es6
index 5ebe5ca..8d5e89c 100644
--- a/app/assets/javascripts/discourse/controllers/discovery/topics.js.es6
+++ b/app/assets/javascripts/discourse/controllers/discovery/topics.js.es6
@@ -111,7 +111,7 @@ const controllerOpts = {
     return (
       (this.isFilterPage(this.get("model.filter"), "new") ||
         this.isFilterPage(this.get("model.filter"), "unread")) &&
-      this.get("model.topics.length") >= 30
+      this.get("model.topics.length") >= 15
     );
   }.property("model.filter", "model.topics.length"),

GitHub