FIX: display select kit body if no choices (#6237)

This commit is contained in:
Joffrey JAFFEUX
2018-08-06 11:22:48 -04:00
committed by GitHub
parent 74269ad585
commit c301111461
5 changed files with 35 additions and 23 deletions

View File

@ -11,13 +11,7 @@ export default Ember.Component.extend({
newValue: "",
collection: null,
values: null,
@computed("addKey", "filteredChoices.length")
noneKey(addKey, filteredChoicesLength) {
return addKey || filteredChoicesLength === 0
? "admin.site_settings.value_list.no_choices_none"
: "admin.site_settings.value_list.default_none";
},
noneKey: Ember.computed.alias("addKey"),
@on("didReceiveAttrs")
_setupCollection() {