mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-03-14 00:50:14 -04: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
1 changed files with 2 additions and 1 deletions
|
@ -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 a new issue