[ 
https://issues.apache.org/jira/browse/AMBARI-25600?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

akiyamaneko updated AMBARI-25600:
---------------------------------
    Attachment: cloned widget.png

>  The default widget name generated by the clone-widget is incorrect
> -------------------------------------------------------------------
>
>                 Key: AMBARI-25600
>                 URL: https://issues.apache.org/jira/browse/AMBARI-25600
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-web
>    Affects Versions: 2.7.3
>            Reporter: akiyamaneko
>            Priority: Minor
>         Attachments: cloned widget.png
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> After cloning an existing widget, try to  edit the cloned widget name and 
> find that even if nothing is modified, the save button cannot be clicked, 
> prompting that the widget name is invalid.
> as shows belows:
> {code:java}
> //代码占位符
> isValidWidgetName: function(value) {
>  var widgetNameRegex = /^[\s0-9a-z_\-%]+$/i;
>  return widgetNameRegex.test(value);
>  }
> {code}
>  
> The automatically generated widget name ends with *(Copy)*, but the regular 
> expression of widgetname does not support parentheses, which often confuses 
> users.



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

Reply via email to