mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Mini tag chooser tweaks
This commit is contained in:
parent
d525a644d2
commit
ed114177e7
@ -14,6 +14,17 @@ export default ComboBox.extend({
|
|||||||
filterable: true,
|
filterable: true,
|
||||||
noTags: Ember.computed.empty("computedTags"),
|
noTags: Ember.computed.empty("computedTags"),
|
||||||
allowAny: true,
|
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() {
|
init() {
|
||||||
this._super();
|
this._super();
|
||||||
@ -136,7 +147,7 @@ export default ComboBox.extend({
|
|||||||
if (isEmpty(this.get("computedTags"))) {
|
if (isEmpty(this.get("computedTags"))) {
|
||||||
content.label = I18n.t("tagging.choose_for_topic");
|
content.label = I18n.t("tagging.choose_for_topic");
|
||||||
} else {
|
} else {
|
||||||
content.label = this.get("computedTags").join(",");
|
content.label = this.get("computedTags").join(", ");
|
||||||
}
|
}
|
||||||
|
|
||||||
return content;
|
return content;
|
||||||
|
@ -1183,7 +1183,7 @@ en:
|
|||||||
default_header_text: Select...
|
default_header_text: Select...
|
||||||
no_content: No matches found
|
no_content: No matches found
|
||||||
filter_placeholder: Search...
|
filter_placeholder: Search...
|
||||||
create: "Create {{content}}"
|
create: "Create: '{{content}}'"
|
||||||
|
|
||||||
emoji_picker:
|
emoji_picker:
|
||||||
filter_placeholder: Search for emoji
|
filter_placeholder: Search for emoji
|
||||||
|
Loading…
Reference in New Issue
Block a user