mirror of
https://github.com/hasura/graphql-engine.git
synced 2025-01-05 22:34:22 +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) {
|
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>
|
||||||
|
Loading…
Reference in New Issue
Block a user