mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06: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;
|
return displayCategoryDescription;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@computed("description", "category.name")
|
||||||
|
title(categoryDescription, categoryName) {
|
||||||
|
if (categoryDescription) return categoryDescription;
|
||||||
|
return categoryName;
|
||||||
|
},
|
||||||
|
|
||||||
@computed("computedContent.value", "computedContent.name")
|
@computed("computedContent.value", "computedContent.name")
|
||||||
category(value, name) {
|
category(value, name) {
|
||||||
if (Ember.isEmpty(value)) {
|
if (Ember.isEmpty(value)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user