adminjs-typeorm icon indicating copy to clipboard operation
adminjs-typeorm copied to clipboard

Primary column not editable

Open trangvu9 opened this issue 3 years ago • 1 comments

Is there a good reason for this line's logic? I think in many cases primary columns such as those non-auto-generated ones should be editable.

https://github.com/SoftwareBrothers/adminjs-typeorm/blob/b1c607624b1cf284892856bfb59012854829ed98/src/Property.ts#L17

"they" are doing it with sequelize too:

https://github.com/SoftwareBrothers/adminjs-sequelizejs/pull/64/files

Thanks

trangvu9 avatar Aug 31 '22 22:08 trangvu9

You can make any field editable using resource options configuration

dziraf avatar Oct 25 '22 11:10 dziraf