FIX: Ensure bulk select toggle appears for non-admin on new/unread (#24763)

TopicList is a classic component, so we need to use `.get()` for the argument to be autotracked in a native getter 😢
This commit is contained in:
David Taylor 2023-12-06 23:55:41 +00:00 committed by GitHub
parent 7afb5fc481
commit a192ae4c15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,7 +43,9 @@ export default Component.extend(LoadMore, {
},
get toggleInTitle() {
return !this.bulkSelectHelper?.bulkSelectEnabled && this.canBulkSelect;
return (
!this.bulkSelectHelper?.bulkSelectEnabled && this.get("canBulkSelect")
);
},
@discourseComputed