mirror of
https://github.com/discourse/discourse.git
synced 2025-01-18 14:03:18 +08:00
FIX: list site settings with no choices will not show the 'No results found' dropdown
This commit is contained in:
parent
c2efa0b3c3
commit
3fb74fd880
|
@ -19,7 +19,8 @@ Discourse.ListSettingComponent = Ember.Component.extend({
|
|||
separator: "|",
|
||||
tokenSeparators: ["|"],
|
||||
tags : this.get("choices") || [],
|
||||
width: 'off'
|
||||
width: 'off',
|
||||
dropdownCss: this.get("choices") ? {} : {display: 'none'}
|
||||
}).on("change", function(obj) {
|
||||
this.set("settingValue", obj.val.join("|"));
|
||||
this.refreshSortables();
|
||||
|
|
Loading…
Reference in New Issue
Block a user