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