From a248ebde3cefbb370df61194673f433f36b379ed Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Tue, 4 Apr 2017 17:19:55 +0800 Subject: [PATCH] Allow custom empty label for `category-chooser`. --- .../discourse/components/category-chooser.js.es6 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/assets/javascripts/discourse/components/category-chooser.js.es6 b/app/assets/javascripts/discourse/components/category-chooser.js.es6 index 7b031e354f6..b79e8ef1884 100644 --- a/app/assets/javascripts/discourse/components/category-chooser.js.es6 +++ b/app/assets/javascripts/discourse/components/category-chooser.js.es6 @@ -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(); }