]> source.dussan.org Git - sonarqube.git/commitdiff
do not lowercase branch names
authorStas Vilchik <stas.vilchik@sonarsource.com>
Tue, 27 Mar 2018 08:50:05 +0000 (10:50 +0200)
committerSonarTech <sonartech@sonarsource.com>
Wed, 28 Mar 2018 18:20:58 +0000 (20:20 +0200)
server/sonar-web/src/main/js/app/components/nav/component/ComponentNavBranch.tsx
server/sonar-web/src/main/js/app/components/nav/component/__tests__/__snapshots__/ComponentNavBranch-test.tsx.snap

index d51dadbd73dfb8fb2d5b7966dcf61cd6d2516c36..e640d448159411b82ae9890cad17a671fb54f20f 100644 (file)
@@ -144,20 +144,20 @@ export default class ComponentNavBranch extends React.PureComponent<Props, State
     const { currentBranchLike } = this.props;
     if (isShortLivingBranch(currentBranchLike)) {
       return currentBranchLike.isOrphan ? (
-        <span className="note big-spacer-left text-lowercase">
+        <span className="note big-spacer-left">
           {translate('branches.orphan_branch')}
           <Tooltip overlay={translate('branches.orphan_branches.tooltip')}>
             <i className="icon-help spacer-left" />
           </Tooltip>
         </span>
       ) : (
-        <span className="note big-spacer-left text-lowercase">
+        <span className="note big-spacer-left">
           {translate('from')} <strong>{currentBranchLike.mergeBranch}</strong>
         </span>
       );
     } else if (isPullRequest(currentBranchLike)) {
       return (
-        <span className="note big-spacer-left text-lowercase">
+        <span className="note big-spacer-left">
           <FormattedMessage
             defaultMessage={translate('branches.pull_request.for_merge_into_x_from_y')}
             id="branches.pull_request.for_merge_into_x_from_y"
@@ -180,8 +180,8 @@ export default class ComponentNavBranch extends React.PureComponent<Props, State
       </a>
       <BubblePopupHelper
         isOpen={this.state.singleBranchPopupOpen}
-        position="bottomleft"
         popup={<SingleBranchHelperPopup />}
+        position="bottomleft"
         togglePopup={this.toggleSingleBranchPopup}
       />
     </div>
@@ -194,8 +194,8 @@ export default class ComponentNavBranch extends React.PureComponent<Props, State
       </a>
       <BubblePopupHelper
         isOpen={this.state.noBranchSupportPopupOpen}
-        position="bottomleft"
         popup={<NoBranchSupportPopup />}
+        position="bottomleft"
         togglePopup={this.toggleNoBranchSupportPopup}
       />
     </div>
@@ -241,7 +241,7 @@ export default class ComponentNavBranch extends React.PureComponent<Props, State
         })}>
         <a className="link-base-color link-no-underline" href="#" onClick={this.handleClick}>
           <BranchIcon branchLike={currentBranchLike} className="little-spacer-right" />
-          <Tooltip overlay={displayName} mouseEnterDelay={1}>
+          <Tooltip mouseEnterDelay={1} overlay={displayName}>
             <span className="text-limited text-top">{displayName}</span>
           </Tooltip>
           <i className="icon-dropdown little-spacer-left" />
index 5f53fb0b98300723defa4ae95b73c9f1620ec0a9..67e5dbf7ef467b1654338de50aaae3243ce98048 100644 (file)
@@ -114,7 +114,7 @@ exports[`renders pull request 1`] = `
     />
   </a>
   <span
-    className="note big-spacer-left text-lowercase"
+    className="note big-spacer-left"
   >
     <FormattedMessage
       defaultMessage="branches.pull_request.for_merge_into_x_from_y"
@@ -176,7 +176,7 @@ exports[`renders short-living branch 1`] = `
     />
   </a>
   <span
-    className="note big-spacer-left text-lowercase"
+    className="note big-spacer-left"
   >
     from