mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 09:22:43 +03:00
show datatype next to column names when adding triggers (#1188)
This commit is contained in:
parent
ee3e099eb5
commit
e3e57ff3c3
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user