mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 00:49:03 +00:00
UI: Hide teams dropdown on software details pages in Primo mode (#30218)
## #30200  - [x] Changes file added for user-visible changes in `changes/` - [x] Manual QA for all new/changed functionality --------- Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
This commit is contained in:
parent
aba9bec260
commit
0c139c98e7
5 changed files with 8 additions and 7 deletions
1
changes/30200-hide-sw-details-teams-dropdowns
Normal file
1
changes/30200-hide-sw-details-teams-dropdowns
Normal file
|
|
@ -0,0 +1 @@
|
|||
* Hide the teams dropdown from the 4 software details pages in Primo mode
|
||||
|
|
@ -54,7 +54,7 @@ const SoftwareOSDetailsPage = ({
|
|||
router,
|
||||
location,
|
||||
}: ISoftwareOSDetailsPageProps) => {
|
||||
const { isPremiumTier, isOnGlobalTeam } = useContext(AppContext);
|
||||
const { isPremiumTier, isOnGlobalTeam, config } = useContext(AppContext);
|
||||
const handlePageError = useErrorHandler();
|
||||
|
||||
const osVersionIdFromURL = parseInt(routeParams.id, 10);
|
||||
|
|
@ -149,7 +149,7 @@ const SoftwareOSDetailsPage = ({
|
|||
|
||||
return (
|
||||
<>
|
||||
{isPremiumTier && (
|
||||
{isPremiumTier && !config?.partnerships?.enable_primo && (
|
||||
<TeamsHeader
|
||||
isOnGlobalTeam={isOnGlobalTeam}
|
||||
currentTeamId={currentTeamId}
|
||||
|
|
|
|||
|
|
@ -209,7 +209,7 @@ const SoftwareTitleDetailsPage = ({
|
|||
|
||||
return (
|
||||
<MainContent className={baseClass}>
|
||||
{isPremiumTier && (
|
||||
{isPremiumTier && !config?.partnerships?.enable_primo && (
|
||||
<TeamsHeader
|
||||
isOnGlobalTeam={isOnGlobalTeam}
|
||||
currentTeamId={currentTeamId}
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ const SoftwareVersionDetailsPage = ({
|
|||
router,
|
||||
location,
|
||||
}: ISoftwareTitleDetailsPageProps) => {
|
||||
const { isPremiumTier, isOnGlobalTeam } = useContext(AppContext);
|
||||
const { isPremiumTier, isOnGlobalTeam, config } = useContext(AppContext);
|
||||
const handlePageError = useErrorHandler();
|
||||
|
||||
const versionId = parseInt(routeParams.id, 10);
|
||||
|
|
@ -144,7 +144,7 @@ const SoftwareVersionDetailsPage = ({
|
|||
|
||||
return (
|
||||
<>
|
||||
{isPremiumTier && (
|
||||
{isPremiumTier && !config?.partnerships?.enable_primo && (
|
||||
<TeamsHeader
|
||||
isOnGlobalTeam={isOnGlobalTeam}
|
||||
currentTeamId={currentTeamId}
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ const SoftwareVulnerabilityDetailsPage = ({
|
|||
routeParams,
|
||||
location,
|
||||
}: ISoftwareVulnerabilityDetailsPageProps) => {
|
||||
const { isPremiumTier, isOnGlobalTeam } = useContext(AppContext);
|
||||
const { isPremiumTier, isOnGlobalTeam, config } = useContext(AppContext);
|
||||
const handlePageError = useErrorHandler();
|
||||
|
||||
const {
|
||||
|
|
@ -130,7 +130,7 @@ const SoftwareVulnerabilityDetailsPage = ({
|
|||
}
|
||||
return (
|
||||
<>
|
||||
{isPremiumTier && (
|
||||
{isPremiumTier && !config?.partnerships?.enable_primo && (
|
||||
<TeamsHeader
|
||||
isOnGlobalTeam={isOnGlobalTeam}
|
||||
currentTeamId={currentTeamId}
|
||||
|
|
|
|||
Loading…
Reference in a new issue