mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: makes sure category and tag drop headers have a title
This commit is contained in:
@@ -91,6 +91,7 @@ export default ComboBoxComponent.extend({
|
||||
|
||||
if (this.get("hasSelection")) {
|
||||
const category = Category.findById(content.value);
|
||||
content.title = category.title;
|
||||
content.label = categoryBadgeHTML(category, {
|
||||
link: false,
|
||||
allowUncategorized: true,
|
||||
@@ -101,10 +102,12 @@ export default ComboBoxComponent.extend({
|
||||
content.label = `<span class="category-name">${this.get(
|
||||
"noCategoriesLabel"
|
||||
)}</span>`;
|
||||
content.title = this.get("noCategoriesLabel");
|
||||
} else {
|
||||
content.label = `<span class="category-name">${this.get(
|
||||
"allCategoriesLabel"
|
||||
)}</span>`;
|
||||
content.title = this.get("allCategoriesLabel");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -43,10 +43,12 @@ export default ComboBoxComponent.extend({
|
||||
|
||||
if (!content.value) {
|
||||
if (this.get("noTagsSelected")) {
|
||||
content.label = this.get("noTagsLabel");
|
||||
content.title = this.get("noTagsLabel");
|
||||
} else {
|
||||
content.label = this.get("allTagsLabel");
|
||||
content.title = this.get("allTagsLabel");
|
||||
}
|
||||
} else {
|
||||
content.title = content.value;
|
||||
}
|
||||
|
||||
return content;
|
||||
|
||||
Reference in New Issue
Block a user