show datatype next to column names when adding triggers (#1188)

This commit is contained in:
Patt-tom McDonnell 2018-12-14 11:38:17 +00:00 committed by Shahidh K Muhammed
parent ee3e099eb5
commit e3e57ff3c3

View File

@ -249,6 +249,7 @@ class AddTrigger extends Component {
if (tableSchema) { if (tableSchema) {
return tableSchema.columns.map((colObj, i) => { return tableSchema.columns.map((colObj, i) => {
const column = colObj.column_name; const column = colObj.column_name;
const columnDataType = colObj.udt_name;
const checked = operations[type] const checked = operations[type]
? operations[type].includes(column) ? operations[type].includes(column)
: false; : false;
@ -272,6 +273,7 @@ class AddTrigger extends Component {
<label> <label>
{inputHtml} {inputHtml}
{column} {column}
<small> ({columnDataType})</small>
</label> </label>
</div> </div>
</div> </div>