aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/app/components/nav/component/ComponentNavMeta.tsx
diff options
context:
space:
mode:
authorStas Vilchik <stas.vilchik@sonarsource.com>2017-08-24 11:53:47 +0200
committerJanos Gyerik <janos.gyerik@sonarsource.com>2017-09-12 11:34:49 +0200
commit404d315b077c84da3c31b0c0f4dde852d918c8d1 (patch)
tree176840ffdfb472a469848539dfbb803372c94b93 /server/sonar-web/src/main/js/app/components/nav/component/ComponentNavMeta.tsx
parent9f5272cac177f024354dd72da2cda2160c5440af (diff)
downloadsonarqube-404d315b077c84da3c31b0c0f4dde852d918c8d1.tar.gz
sonarqube-404d315b077c84da3c31b0c0f4dde852d918c8d1.zip
SONAR-9736 Build UI for long-living branches (#2390)
Diffstat (limited to 'server/sonar-web/src/main/js/app/components/nav/component/ComponentNavMeta.tsx')
-rw-r--r--server/sonar-web/src/main/js/app/components/nav/component/ComponentNavMeta.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/app/components/nav/component/ComponentNavMeta.tsx b/server/sonar-web/src/main/js/app/components/nav/component/ComponentNavMeta.tsx
index fae37abdabd..00c4db25561 100644
--- a/server/sonar-web/src/main/js/app/components/nav/component/ComponentNavMeta.tsx
+++ b/server/sonar-web/src/main/js/app/components/nav/component/ComponentNavMeta.tsx
@@ -25,6 +25,7 @@ import Tooltip from '../../../../components/controls/Tooltip';
import PendingIcon from '../../../../components/icons-components/PendingIcon';
import DateTimeFormatter from '../../../../components/intl/DateTimeFormatter';
import { translate, translateWithParameters } from '../../../../helpers/l10n';
+import { isShortLivingBranch } from '../../../../helpers/branches';
interface Props {
branch: Branch;
@@ -114,7 +115,7 @@ export default function ComponentNavMeta(props: Props) {
);
}
- if (!props.branch.isMain) {
+ if (isShortLivingBranch(props.branch)) {
metaList.push(
<li className="navbar-context-meta-branch" key="branch-status">
<BranchStatus branch={props.branch} />