FIX: list site settings with no choices will not show the 'No results found' dropdown

This commit is contained in:
Neil Lalonde 2014-06-20 18:02:58 -04:00
parent c2efa0b3c3
commit 3fb74fd880

View File

@ -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();