mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 10:15:48 +08:00
Fix 'undefined' in Create Category modal title
This commit is contained in:
parent
d579e4c5d5
commit
234474af1b
|
@ -23,12 +23,12 @@ Discourse.EditCategoryController = Discourse.ObjectController.extend(Discourse.M
|
||||||
|
|
||||||
title: function() {
|
title: function() {
|
||||||
if (this.get('id')) {
|
if (this.get('id')) {
|
||||||
return I18n.t("category.edit_long") + ": " + this.get('model.name');
|
return I18n.t("category.edit_long") + " : " + this.get('model.name');
|
||||||
}
|
}
|
||||||
if (this.get('isUncategorized')){
|
if (this.get('isUncategorized')){
|
||||||
return I18n.t("category.edit_uncategorized");
|
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'),
|
}.property('id', 'model.name'),
|
||||||
|
|
||||||
titleChanged: function() {
|
titleChanged: function() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user