mirror of
https://github.com/discourse/discourse.git
synced 2025-09-04 08:47:37 +08:00
FIX: make it possible to edit tags on topics on mobile
This commit is contained in:
parent
13eda41ff5
commit
a15b2fdeca
3 changed files with 6 additions and 2 deletions
|
@ -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)}}
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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")) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue