webpack/scenes/ModuleStreams/Details/ModuleDetailsSchema.js in katello-4.6.2.1 vs webpack/scenes/ModuleStreams/Details/ModuleDetailsSchema.js in katello-4.7.0.rc1

- old
+ new

@@ -1,8 +1,9 @@ import React from 'react'; import { translate as __ } from 'foremanReact/common/I18n'; import ModuleStreamDetailArtifacts from './ModuleStreamDetailArtifacts'; +import ModuleStreamDetailProfiles from './Profiles/ModuleStreamDetailProfiles'; import ContentDetailInfo from '../../../components/Content/Details/ContentDetailInfo'; import ContentDetailRepositories from '../../../components/Content/Details/ContentDetailRepositories'; export const displayMap = new Map([ ['name', __('Name')], @@ -14,11 +15,11 @@ ['context', __('Context')], ['uuid', __('UUID')], ]); export default (detailInfo) => { - const { repositories, artifacts } = detailInfo; + const { repositories, profiles, artifacts } = detailInfo; return [ { key: 1, tabHeader: __('Details'), @@ -34,9 +35,17 @@ __('No repositories to show') ), }, { key: 3, + tabHeader: __('Profiles'), + tabContent: (profiles && profiles.length ? + <ModuleStreamDetailProfiles profiles={profiles} /> : + __('No profiles to show') + ), + }, + { + key: 4, tabHeader: __('Artifacts'), tabContent: (artifacts && artifacts.length ? <ModuleStreamDetailArtifacts artifacts={artifacts} /> : __('No artifacts to show') ),