aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/overview/meta/Meta.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/apps/overview/meta/Meta.js')
-rw-r--r--server/sonar-web/src/main/js/apps/overview/meta/Meta.js13
1 files changed, 12 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/apps/overview/meta/Meta.js b/server/sonar-web/src/main/js/apps/overview/meta/Meta.js
index b5102e26d64..c5dfaa64ecb 100644
--- a/server/sonar-web/src/main/js/apps/overview/meta/Meta.js
+++ b/server/sonar-web/src/main/js/apps/overview/meta/Meta.js
@@ -26,7 +26,9 @@ import MetaQualityGate from './MetaQualityGate';
import MetaQualityProfiles from './MetaQualityProfiles';
import AnalysesList from '../events/AnalysesList';
import MetaSize from './MetaSize';
+import TagsList from '../../../components/ui/TagsList';
import { areThereCustomOrganizations } from '../../../store/rootReducer';
+import { translate } from '../../../helpers/l10n';
const Meta = ({ component, measures, areThereCustomOrganizations }) => {
const { qualifier, description, qualityProfiles, qualityGate } = component;
@@ -41,9 +43,10 @@ const Meta = ({ component, measures, areThereCustomOrganizations }) => {
const shouldShowQualityProfiles = !isView && !isDeveloper && hasQualityProfiles;
const shouldShowQualityGate = !isView && !isDeveloper && hasQualityGate;
-
const shouldShowOrganizationKey = component.organization != null && areThereCustomOrganizations;
+ const configuration = component.configuration || {};
+
return (
<div className="overview-meta">
{hasDescription &&
@@ -53,6 +56,14 @@ const Meta = ({ component, measures, areThereCustomOrganizations }) => {
<MetaSize component={component} measures={measures} />
+ <div className="overview-meta-card">
+ <TagsList
+ tags={component.tags.length ? component.tags : [translate('no_tags')]}
+ allowUpdate={configuration.showSettings}
+ allowMultiLine={true}
+ />
+ </div>
+
{shouldShowQualityGate && <MetaQualityGate gate={qualityGate} />}
{shouldShowQualityProfiles && <MetaQualityProfiles profiles={qualityProfiles} />}