mirror of
https://github.com/discourse/discourse.git
synced 2025-06-06 13:06:56 +08:00
Mini tag chooser tweaks
This commit is contained in:
@ -14,6 +14,17 @@ export default ComboBox.extend({
|
||||
filterable: true,
|
||||
noTags: Ember.computed.empty("computedTags"),
|
||||
allowAny: true,
|
||||
caretUpIcon: Ember.computed.alias("caretIcon"),
|
||||
caretDownIcon: Ember.computed.alias("caretIcon"),
|
||||
|
||||
@computed("computedTags", "siteSettings.max_tags_per_topic")
|
||||
caretIcon(computedTags, maxTagsPerTopic) {
|
||||
if (computedTags.length >= maxTagsPerTopic) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return "plus";
|
||||
},
|
||||
|
||||
init() {
|
||||
this._super();
|
||||
@ -136,7 +147,7 @@ export default ComboBox.extend({
|
||||
if (isEmpty(this.get("computedTags"))) {
|
||||
content.label = I18n.t("tagging.choose_for_topic");
|
||||
} else {
|
||||
content.label = this.get("computedTags").join(",");
|
||||
content.label = this.get("computedTags").join(", ");
|
||||
}
|
||||
|
||||
return content;
|
||||
|
@ -1183,7 +1183,7 @@ en:
|
||||
default_header_text: Select...
|
||||
no_content: No matches found
|
||||
filter_placeholder: Search...
|
||||
create: "Create {{content}}"
|
||||
create: "Create: '{{content}}'"
|
||||
|
||||
emoji_picker:
|
||||
filter_placeholder: Search for emoji
|
||||
|
Reference in New Issue
Block a user