FIX: make it possible to edit tags on topics on mobile

This commit is contained in:
Joffrey JAFFEUX 2018-03-04 13:47:25 +01:00 committed by GitHub
parent 13eda41ff5
commit a15b2fdeca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 2 deletions

View File

@ -22,7 +22,7 @@
{{/if}}
{{#if canEditTags}}
{{mini-tag-chooser tags=buffered.tags categoryId=buffered.category_id}}
{{mini-tag-chooser filterable=true tags=buffered.tags categoryId=buffered.category_id}}
{{/if}}
{{plugin-outlet name="edit-topic" args=(hash model=model buffered=buffered)}}

View File

@ -17,6 +17,7 @@ export default ComboBox.extend(Tags, {
caretUpIcon: Ember.computed.alias("caretIcon"),
caretDownIcon: Ember.computed.alias("caretIcon"),
isAsync: true,
fullWidthOnMobile: true,
init() {
this._super();

View File

@ -80,7 +80,10 @@ export default Ember.Component.extend(UtilsMixin, PluginApiMixin, DomHelpersMixi
this.set("computedContent", []);
if (this.site && this.site.isMobileDevice) {
this.setProperties({ filterable: false, autoFilterable: false });
this.setProperties({
filterable: isNone(this.get("filterable")) ? false : this.get("filterable"),
autoFilterable: isNone(this.get("autoFilterable")) ? false : this.get("filterable")
});
}
if (this.get("nameChanges")) {