Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-25600

The default widget name generated by the clone-widget is incorrect

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsAdd voteVotersWatch issueWatchersCreate sub-taskConvert to sub-taskLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.7.3
    • None
    • ambari-web
    • None

    Description

      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:

      //代码占位符
      isValidWidgetName: function(value) {
       var widgetNameRegex = /^[\s0-9a-z_\-%]+$/i;
       return widgetNameRegex.test(value);
       }
      

       

      The automatically generated widget name ends with (Copy), but the regular expression of widgetname does not support parentheses, which often confuses users.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned Assign to me
            echohlne huangkunlun

            Dates

              Created:
              Updated:

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0h
              0h
              Logged:
              Time Spent - 20m
              20m

              Slack

                Issue deployment