diff options
Diffstat (limited to 'server/sonar-web/src/main/js/app/components/nav/component/ComponentNavBranchesMenu.tsx')
-rw-r--r-- | server/sonar-web/src/main/js/app/components/nav/component/ComponentNavBranchesMenu.tsx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/js/app/components/nav/component/ComponentNavBranchesMenu.tsx b/server/sonar-web/src/main/js/app/components/nav/component/ComponentNavBranchesMenu.tsx index e58e796e9a0..3085c1212f9 100644 --- a/server/sonar-web/src/main/js/app/components/nav/component/ComponentNavBranchesMenu.tsx +++ b/server/sonar-web/src/main/js/app/components/nav/component/ComponentNavBranchesMenu.tsx @@ -29,6 +29,7 @@ import { import { translate } from '../../../../helpers/l10n'; import { getProjectBranchUrl } from '../../../../helpers/urls'; import { Link } from 'react-router'; +import Tooltip from '../../../../components/controls/Tooltip'; interface Props { branches: Branch[]; @@ -168,6 +169,16 @@ export default class ComponentNavBranchesMenu extends React.PureComponent<Props, if (isLongLivingBranch(branch) || (isOrphan && !isPreviousOrphan)) { menu.push(<li key={`divider-${branch.name}`} className="divider" />); } + if (isOrphan && !isPreviousOrphan) { + menu.push( + <li className="dropdown-header" key="orphans"> + {translate('branches.orphan_branches')} + <Tooltip overlay={translate('branches.orphan_branches.tooltip')}> + <i className="icon-help spacer-left" /> + </Tooltip> + </li> + ); + } menu.push( <ComponentNavBranchesMenuItem branch={branch} |