mirror of
https://github.com/discourse/discourse.git
synced 2025-04-13 18:40:13 +08:00
FIX: makes sure category desc is displayed as row title when possible
This commit is contained in:
parent
37fa843efc
commit
f81af74ad8
@ -20,6 +20,12 @@ export default SelectKitRowComponent.extend({
|
||||
return displayCategoryDescription;
|
||||
},
|
||||
|
||||
@computed("description", "category.name")
|
||||
title(categoryDescription, categoryName) {
|
||||
if (categoryDescription) return categoryDescription;
|
||||
return categoryName;
|
||||
},
|
||||
|
||||
@computed("computedContent.value", "computedContent.name")
|
||||
category(value, name) {
|
||||
if (Ember.isEmpty(value)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user