mirror of
https://github.com/discourse/discourse.git
synced 2025-03-09 14:34:35 +00:00
Allow custom empty label for category-chooser
.
This commit is contained in:
parent
e4d7e4fbe3
commit
a248ebde3c
@ -40,11 +40,11 @@ export default ComboboxView.extend({
|
||||
}
|
||||
},
|
||||
|
||||
@computed("rootNone")
|
||||
none(rootNone) {
|
||||
@computed("rootNone", "rootNoneLabel")
|
||||
none(rootNone, rootNoneLabel) {
|
||||
if (Discourse.SiteSettings.allow_uncategorized_topics || this.get('allowUncategorized')) {
|
||||
if (rootNone) {
|
||||
return "category.none";
|
||||
return rootNoneLabel || "category.none";
|
||||
} else {
|
||||
return Category.findUncategorized();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user