mirror of
https://github.com/discourse/discourse.git
synced 2025-03-03 15:26:23 +08:00
FIX: We were overriding the canCreateTopicOnCategory
computed property
It seems to be set everytime by the route so the old CP was not required. This is not allowed in newer versions of ember.
This commit is contained in:
parent
025490ecb9
commit
4987d61448
@ -27,6 +27,7 @@ const controllerOpts = {
|
||||
router: service(),
|
||||
|
||||
period: null,
|
||||
canCreateTopicOnCategory: null,
|
||||
|
||||
canStar: alias("currentUser.id"),
|
||||
showTopicPostBadges: not("discoveryTopics.new"),
|
||||
@ -158,11 +159,6 @@ const controllerOpts = {
|
||||
weekly: equal("period", "weekly"),
|
||||
daily: equal("period", "daily"),
|
||||
|
||||
@discourseComputed("model")
|
||||
canCreateTopicOnCategory(model) {
|
||||
return model.can_create_topic;
|
||||
},
|
||||
|
||||
@discourseComputed("allLoaded", "model.topics.length")
|
||||
footerMessage(allLoaded, topicsLength) {
|
||||
if (!allLoaded) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user