[ 
https://issues.apache.org/jira/browse/ATLAS-4116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17276859#comment-17276859
 ] 

Keval Bhatt commented on ATLAS-4116:
------------------------------------

Hi [~prasadpp13], Thanks for the patch.

In the new patch 
[^0001-ATLAS-4116-UI-UI-should-not-allow-the-user-to-create.patch]  I think the 
condition is specific to modal so you should bind to specific modal input 

Example:

{code:java}
$('body').on('keyup input', '.modal-body input', function(e) {}){code}

or create the custom JQuery event for a specific element which is not bond to 
modal only

Example:


{code:java}
$('body').on('keyup input', 'input.no-empty', function(e) {
    (true) ? this.trigger("input:success") : this.trigger("input:failed");
}){code}
 

 

> UI should not allow the user to create a glossary with blank(" ") name
> ----------------------------------------------------------------------
>
>                 Key: ATLAS-4116
>                 URL: https://issues.apache.org/jira/browse/ATLAS-4116
>             Project: Atlas
>          Issue Type: Bug
>            Reporter: Nixon Rodrigues
>            Assignee: Prasad P. Pawar
>            Priority: Major
>         Attachments: 
> 0001-ATLAS-4116-UI-UI-should-not-allow-the-user-to-create.patch, 
> Atlas-4116Fix.png
>
>
> When just space is input the "Create" button is not enabled, but when the 
> space is selected, then the "Create" button is enabled and User is allowed to 
> click on "*Create*".
> This results in un-necessary failures
> *
> {"errorCode":"ATLAS-400-00-079","errorMessage":"Attributes qualifiedName and 
> name are missing. Failed to derive a unique name for Glossary"}
> *
> It is better to not allow clicking on "Create" for such an input via UI



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to