aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web
diff options
context:
space:
mode:
authorStas Vilchik <stas.vilchik@sonarsource.com>2017-10-18 12:08:41 +0200
committerStas Vilchik <stas.vilchik@sonarsource.com>2017-10-19 11:07:32 +0200
commit368011d4ac2fa6bc1d928e6d1169d5c2d470ef8c (patch)
treef45439fdfd71cd287e9a0b98c9af068e62f08a66 /server/sonar-web
parent439ea68c8cdb11a1d56cad9dd5c9e9dc5afd9c25 (diff)
downloadsonarqube-368011d4ac2fa6bc1d928e6d1169d5c2d470ef8c.tar.gz
sonarqube-368011d4ac2fa6bc1d928e6d1169d5c2d470ef8c.zip
display branch icon for branch analysis on background tasks page
Diffstat (limited to 'server/sonar-web')
-rw-r--r--server/sonar-web/src/main/js/apps/background-tasks/components/TaskComponent.tsx8
1 files changed, 7 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/apps/background-tasks/components/TaskComponent.tsx b/server/sonar-web/src/main/js/apps/background-tasks/components/TaskComponent.tsx
index 5e9fcca412b..d94228bde20 100644
--- a/server/sonar-web/src/main/js/apps/background-tasks/components/TaskComponent.tsx
+++ b/server/sonar-web/src/main/js/apps/background-tasks/components/TaskComponent.tsx
@@ -24,6 +24,8 @@ import { Task } from '../types';
import QualifierIcon from '../../../components/shared/QualifierIcon';
import Organization from '../../../components/shared/Organization';
import { getProjectUrl } from '../../../helpers/urls';
+import ShortLivingBranchIcon from '../../../components/icons-components/ShortLivingBranchIcon';
+import LongLivingBranchIcon from '../../../components/icons-components/LongLivingBranchIcon';
interface Props {
task: Task;
@@ -41,7 +43,11 @@ export default function TaskComponent({ task }: Props) {
return (
<td>
- {task.componentQualifier && (
+ {task.branchType === 'SHORT' && <ShortLivingBranchIcon className="little-spacer-right" />}
+ {task.branchType === 'LONG' && <LongLivingBranchIcon className="little-spacer-right" />}
+
+ {!task.branchType &&
+ task.componentQualifier && (
<span className="little-spacer-right">
<QualifierIcon qualifier={task.componentQualifier} />
</span>