Skip to content

Commit

Permalink
add name field to ui elements if it's not editable - fixes #968
Browse files Browse the repository at this point in the history
  • Loading branch information
sebmck committed Feb 5, 2015
1 parent 0f10d6f commit 69b4902
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/list.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,12 @@ List.prototype.getOptions = function() {
case 'field':
// add the field options by path
ops.fields[el.field.path] = el.field.getOptions();
// don't output special or hidden fields
// don't output the name field as a ui element if it's editable as it'll
// appear as an input in the header
if (el.field === this.nameField && this.nameIsEditable) {
return;
}
// don't output hidden fields
if (el.field === this.nameField || el.field.hidden) {
return;
}
Expand Down

0 comments on commit 69b4902

Please sign in to comment.