Allow custom empty label for `category-chooser`.

This commit is contained in:
Guo Xiang Tan 2017-04-04 17:19:55 +08:00
parent e4d7e4fbe3
commit a248ebde3c
1 changed files with 3 additions and 3 deletions

View File

@ -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();
}