Closed ajeygore closed 6 years ago
Listing possible autocomplete fields:
I'll work on this
Thanks :-)
Also, we need to check Uniqueness of API name before it get’s submitted. You can’t have an API with duplicate name and there should be no spaces on [a-z][A-Z]_- is allowed
On 2 Mar 2018, at 6:08 PM, Giovanni Sakti notifications@github.com wrote:
Listing possible autocomplete fields:
Users Add Group Groups Assign Admin Add User Add VPN Add Host Hosts Add VPN I'll work on this
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/gate-sso/gate/issues/81#issuecomment-369879714, or mute the thread https://github.com/notifications/unsubscribe-auth/AAKK_voae8c-bBfC_WGRuMrDKaUr0KGNks5taRowgaJpZM4SZgu_.
PR raised #85
For we need to check Uniqueness of API name before it get’s submitted. You can’t have an API with duplicate name and there should be no spaces on [a-z][A-Z]_- is allowed
you already put this line at the api_resource
model
validates :name, format: { with: /\A[a-zA-Z0-9_-]+\Z/ }, uniqueness: true, presence: true
Yes, but that validates when it tries to save model, if we put this in javascript then life will be much easier, I will merge your pull request.
ok, breakdown the tasks necessary for that:
.blur()
PR raised #90
Merged, closing this issue, Thanks.
We need to provide "writeable" autocomplete drop down with scroll bar, instead of opening entire list, it should just provide place to type.