From 8e544d55153bf60cfdd74a2e7156f515b32f5cf7 Mon Sep 17 00:00:00 2001 From: Jeremy Lenz Date: Mon, 5 Feb 2024 12:49:50 -0500 Subject: [PATCH] Refs #37140 - remove RepositorySetsTab non-SCA banner --- .../RepositorySetsTab/RepositorySetsTab.js | 22 ++++--------------- 1 file changed, 4 insertions(+), 18 deletions(-) diff --git a/webpack/components/extensions/HostDetails/Tabs/RepositorySetsTab/RepositorySetsTab.js b/webpack/components/extensions/HostDetails/Tabs/RepositorySetsTab/RepositorySetsTab.js index b98f9f8e6a2..deefeacfc30 100644 --- a/webpack/components/extensions/HostDetails/Tabs/RepositorySetsTab/RepositorySetsTab.js +++ b/webpack/components/extensions/HostDetails/Tabs/RepositorySetsTab/RepositorySetsTab.js @@ -56,7 +56,7 @@ import { setContentOverrides, } from './RepositorySetsActions'; -import { selectOrganization, selectOrganizationStatus } from '../../Cards/SystemPurposeCard/SystemPurposeSelectors'; +import { selectOrganizationStatus } from '../../Cards/SystemPurposeCard/SystemPurposeSelectors'; import { getOrganization } from '../../Cards/SystemPurposeCard/SystemPurposeActions'; import { REPOSITORY_SETS_KEY, STATUSES, STATUS_TO_PARAM, PARAM_TO_FRIENDLY_NAME, PROVIDER_TYPES, PROVIDER_TYPE_PARAM_TO_FRIENDLY_NAME, PROVIDER_TYPE_TO_PARAM } from './RepositorySetsConstants.js'; @@ -172,9 +172,6 @@ const RepositorySetsTab = () => { organization_id: orgId, } = hostDetails; - const { - simple_content_access: simpleContentAccess, - } = useSelector(state => selectOrganization(state, orgId)); const orgStatus = useSelector(state => selectOrganizationStatus(state, orgId)); const orgNotLoaded = orgStatus !== STATUS.RESOLVED; @@ -265,14 +262,14 @@ const RepositorySetsTab = () => { } return getHostRepositorySets({ content_access_mode_env: toggleGroupState === LIMIT_TO_ENVIRONMENT, - content_access_mode_all: simpleContentAccess, + content_access_mode_all: true, host_id: hostId, ...apiSortParams, ...modifiedParams, }); }, [hostId, statusSelected, STATUS_LABEL, repoTypeSelected, - REPO_TYPE_LABEL, toggleGroupState, LIMIT_TO_ENVIRONMENT, simpleContentAccess, apiSortParams], + REPO_TYPE_LABEL, toggleGroupState, LIMIT_TO_ENVIRONMENT, apiSortParams], ); useEffect(() => { @@ -501,21 +498,10 @@ const RepositorySetsTab = () => { const hostEnvText = 'the "{contentViewName}" content view and "{lifecycleEnvironmentName}" environment'; - const scaAlert = (toggleGroupState === LIMIT_TO_ENVIRONMENT ? + const alertText = (toggleGroupState === LIMIT_TO_ENVIRONMENT ? `Showing only repositories in ${hostEnvText}.` : 'Showing all available repositories.'); - const nonScaAlert = (toggleGroupState === LIMIT_TO_ENVIRONMENT ? - `Showing repositories in ${hostEnvText} that are available through subscriptions.` : - 'Showing all repositories available through subscriptions.'); - - let alertText; - if (simpleContentAccess) { - alertText = scaAlert; - } else { - alertText = nonScaAlert; - } - return (