Commit dd1b1813 authored by Kyle B. Johnson's avatar Kyle B. Johnson Committed by Kevin Stover

use field type model nicename. (#1871)

parent 5111bf4f
......@@ -92,8 +92,11 @@ define( [], function() {
if( 'undefined' != typeof fieldTypes && 0 != fieldTypes.length ) {
_.each( fieldTypes, function( fieldType ){
var fieldTypeModel = nfRadio.channel( 'fields' ).request( 'get:type', fieldType );
options.push({
label: '-- Add ' + fieldType + ' Field',
label: '-- Add ' + fieldTypeModel.get( 'nicename' ) + ' Field',
value: 'addField:' + fieldType,
});
} );
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment