diff --git a/app/assets/javascripts/discourse/app/controllers/user-notifications.js b/app/assets/javascripts/discourse/app/controllers/user-notifications.js index e821b68364f..c0761e70dcb 100644 --- a/app/assets/javascripts/discourse/app/controllers/user-notifications.js +++ b/app/assets/javascripts/discourse/app/controllers/user-notifications.js @@ -16,7 +16,7 @@ export default Controller.extend({ }, @discourseComputed("model.content.length", "filter") - hasNotifications(length, filter) { + hasFilteredNotifications(length, filter) { if (filter === "read") { return this.model.filterBy("read", true).length > 0; } else if (filter === "unread") { diff --git a/app/assets/javascripts/discourse/app/templates/user/notifications-index.hbs b/app/assets/javascripts/discourse/app/templates/user/notifications-index.hbs index adf5d0d11d8..b2c9185ec47 100644 --- a/app/assets/javascripts/discourse/app/templates/user/notifications-index.hbs +++ b/app/assets/javascripts/discourse/app/templates/user/notifications-index.hbs @@ -8,9 +8,10 @@ {{/if}} -{{#if hasNotifications}} - {{notifications-filter value=filter onChange=(action "filterNotifications")}} - +{{notifications-filter value=filter onChange=(action "filterNotifications")}} + + +{{#if hasFilteredNotifications}} {{user-notifications-large notifications=model filter=filter}} {{conditional-loading-spinner condition=loading}} {{else}}