mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Fix 'undefined' in Create Category modal title
This commit is contained in:
@@ -28,7 +28,7 @@ Discourse.EditCategoryController = Discourse.ObjectController.extend(Discourse.M
|
||||
if (this.get('isUncategorized')){
|
||||
return I18n.t("category.edit_uncategorized");
|
||||
}
|
||||
return I18n.t("category.create") + " : " + this.get('model.name');
|
||||
return I18n.t("category.create") + (this.get('model.name') ? (" : " + this.get('model.name')) : '');
|
||||
}.property('id', 'model.name'),
|
||||
|
||||
titleChanged: function() {
|
||||
|
||||
Reference in New Issue
Block a user