File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ import { intl } from '../../Utilities/IntlProvider';
2626import { clearNotifications } from '@redhat-cloud-services/frontend-components-notifications/redux' ;
2727import AdvisoriesStatusReport from '../../PresentationalComponents/StatusReports/AdvisoriesStatusReport' ;
2828import { useChrome } from '@redhat-cloud-services/frontend-components/useChrome' ;
29- import { DEFAULT_PATCH_TITLE } from '../../Utilities/constants' ;
3029import { useNavigate , useSearchParams } from 'react-router-dom' ;
3130
3231const Advisories = ( ) => {
@@ -35,7 +34,7 @@ const Advisories = () => {
3534 const chrome = useChrome ( ) ;
3635
3736 useEffect ( ( ) => {
38- chrome . updateDocumentTitle ( `${ intl . formatMessage ( messages . titlesAdvisories ) } ${ DEFAULT_PATCH_TITLE } ` ) ;
37+ chrome . updateDocumentTitle ( `Advisories - Content | RHEL` , true ) ;
3938 } , [ chrome ] ) ;
4039
4140 const dispatch = useDispatch ( ) ;
Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ import { intl } from '../../Utilities/IntlProvider';
1212import AdvisorySystems from '../AdvisorySystems/AdvisorySystems' ;
1313import { clearNotifications } from '@redhat-cloud-services/frontend-components-notifications/redux' ;
1414import { useChrome } from '@redhat-cloud-services/frontend-components/useChrome' ;
15- import { DEFAULT_PATCH_TITLE } from '../../Utilities/constants' ;
1615
1716const AdvisoryDetail = ( ) => {
1817 const dispatch = useDispatch ( ) ;
@@ -21,8 +20,7 @@ const AdvisoryDetail = () => {
2120
2221 useEffect ( ( ) => {
2322 advisoryName &&
24- chrome . updateDocumentTitle ( `${ advisoryName }
25- - ${ intl . formatMessage ( messages . titlesAdvisories ) } ${ DEFAULT_PATCH_TITLE } ` ) ;
23+ chrome . updateDocumentTitle ( `${ advisoryName } - Advisories - Content | RHEL` , true ) ;
2624 } , [ chrome , advisoryName ] ) ;
2725
2826 const advisoryDetails = useSelector (
Original file line number Diff line number Diff line change @@ -13,16 +13,14 @@ import { intl } from '../../Utilities/IntlProvider';
1313import { clearNotifications } from '@redhat-cloud-services/frontend-components-notifications/redux' ;
1414import ErrorHandler from '../../PresentationalComponents/Snippets/ErrorHandler' ;
1515import { useChrome } from '@redhat-cloud-services/frontend-components/useChrome' ;
16- import { DEFAULT_PATCH_TITLE } from '../../Utilities/constants' ;
1716
1817const PackageDetail = ( ) => {
1918 const dispatch = useDispatch ( ) ;
2019 const { packageName } = useParams ( ) ;
2120 const chrome = useChrome ( ) ;
2221
2322 useEffect ( ( ) => {
24- packageName && chrome . updateDocumentTitle ( `${ packageName } - ${ intl . formatMessage ( messages . titlesPackages ) }
25- ${ DEFAULT_PATCH_TITLE } ` ) ;
23+ packageName && chrome . updateDocumentTitle ( `${ packageName } - Packages - Content | RHEL` , true ) ;
2624 } , [ chrome , packageName ] ) ;
2725
2826 const packageDetails = useSelector (
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import TableView from '../../PresentationalComponents/TableView/TableView';
99import { packagesColumns } from '../../PresentationalComponents/TableView/TableViewAssets' ;
1010import { changePackagesListParams , fetchPackagesAction } from '../../store/Actions/Actions' ;
1111import { exportPackagesCSV , exportPackagesJSON } from '../../Utilities/api' ;
12- import { DEFAULT_PATCH_TITLE , packagesListDefaultFilters } from '../../Utilities/constants' ;
12+ import { packagesListDefaultFilters } from '../../Utilities/constants' ;
1313import { createPackagesRows } from '../../Utilities/DataMappers' ;
1414import { createSortBy , decodeQueryparams , encodeURLParams } from '../../Utilities/Helpers' ;
1515import { useOnExport , usePerPageSelect ,
@@ -23,7 +23,7 @@ const Packages = () => {
2323 const [ firstMount , setFirstMount ] = React . useState ( true ) ;
2424 const chrome = useChrome ( ) ;
2525 useEffect ( ( ) => {
26- chrome . updateDocumentTitle ( `${ intl . formatMessage ( messages . titlesPackages ) } ${ DEFAULT_PATCH_TITLE } ` ) ;
26+ chrome . updateDocumentTitle ( `Packages - Content | RHEL` , true ) ;
2727 } , [ chrome ] ) ;
2828
2929 const [ searchParams , setSearchParams ] = useSearchParams ( ) ;
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ import {
2424 patchSetRowActions , CustomActionsToggle
2525} from './PatchSetAssets' ;
2626import PatchSetWizard from '../PatchSetWizard/PatchSetWizard' ;
27- import { DEFAULT_PATCH_TITLE , patchSetDeleteNotifications } from '../../Utilities/constants' ;
27+ import { patchSetDeleteNotifications } from '../../Utilities/constants' ;
2828import { usePermissionsWithContext } from '@redhat-cloud-services/frontend-components-utilities/RBACHook' ;
2929import { OutlinedQuestionCircleIcon } from '@patternfly/react-icons' ;
3030import { Icon , Popover } from '@patternfly/react-core' ;
@@ -36,7 +36,7 @@ const PatchSet = () => {
3636 const IS_SELECTION_ENABLED = false ;
3737 const chrome = useChrome ( ) ;
3838 useEffect ( ( ) => {
39- chrome . updateDocumentTitle ( `${ intl . formatMessage ( messages . titlesTemplate ) } ${ DEFAULT_PATCH_TITLE } ` ) ;
39+ chrome . updateDocumentTitle ( `Templates - Patch | RHEL` , true ) ;
4040 } , [ chrome ] ) ;
4141
4242 const dispatch = useDispatch ( ) ;
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ import {
3333import DeleteSetModal from '../Modals/DeleteSetModal' ;
3434import { deletePatchSet , fetchPatchSetSystems } from '../../Utilities/api' ;
3535import { addNotification } from '@redhat-cloud-services/frontend-components-notifications/redux' ;
36- import { DEFAULT_PATCH_TITLE , patchSetDeleteNotifications } from '../../Utilities/constants' ;
36+ import { patchSetDeleteNotifications } from '../../Utilities/constants' ;
3737import ErrorHandler from '../../PresentationalComponents/Snippets/ErrorHandler' ;
3838import {
3939 arrayFromObj ,
@@ -132,8 +132,7 @@ const PatchSetDetail = () => {
132132 const patchSetName = templateDetails . data . attributes . name ;
133133
134134 useEffect ( ( ) => {
135- patchSetName && chrome . updateDocumentTitle ( `${ patchSetName } - ${ intl . formatMessage ( messages . titlesTemplate ) }
136- ${ DEFAULT_PATCH_TITLE } ` ) ;
135+ patchSetName && chrome . updateDocumentTitle ( `${ patchSetName } - Templates - Patch | RHEL` , true ) ;
137136 } , [ chrome , patchSetName ] ) ;
138137
139138 const onSelect = useOnSelect (
Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ import { usePatchSetState } from '../../Utilities/hooks';
1616import { useParams } from 'react-router-dom' ;
1717import SystemDetail from './SystemDetail' ;
1818import { useChrome } from '@redhat-cloud-services/frontend-components/useChrome' ;
19- import { DEFAULT_PATCH_TITLE } from '../../Utilities/constants' ;
2019import { InsightsLink } from '@redhat-cloud-services/frontend-components/InsightsLink' ;
2120import { usePermissionsWithContext } from '@redhat-cloud-services/frontend-components-utilities/RBACHook' ;
2221
@@ -51,8 +50,7 @@ const InventoryDetail = () => {
5150
5251 const chrome = useChrome ( ) ;
5352 useEffect ( ( ) => {
54- displayName && chrome . updateDocumentTitle ( `${ displayName } - ${ intl . formatMessage ( messages . titlesSystems ) }
55- ${ DEFAULT_PATCH_TITLE } ` ) ;
53+ displayName && chrome . updateDocumentTitle ( `${ displayName } - Systems - Patch | RHEL` , true ) ;
5654 } , [ chrome , displayName ] ) ;
5755
5856 const { hasAccess : hasTemplateAccess } = usePermissionsWithContext ( [
Original file line number Diff line number Diff line change 11import React , { useEffect } from 'react' ;
22import messages from '../../Messages' ;
33import Header from '../../PresentationalComponents/Header/Header' ;
4- import { DEFAULT_PATCH_TITLE } from '../../Utilities/constants' ;
54import { intl } from '../../Utilities/IntlProvider' ;
65import { useChrome } from '@redhat-cloud-services/frontend-components/useChrome' ;
76
@@ -10,7 +9,7 @@ import SystemsMainContent from './SystemsMainContent';
109const SystemsPage = ( ) => {
1110 const chrome = useChrome ( ) ;
1211 useEffect ( ( ) => {
13- chrome . updateDocumentTitle ( `${ intl . formatMessage ( messages . titlesSystems ) } ${ DEFAULT_PATCH_TITLE } ` ) ;
12+ chrome . updateDocumentTitle ( `Systems - Patch | RHEL` , true ) ;
1413 } , [ chrome , intl ] ) ;
1514
1615 return (
Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ import { subtractDate } from './Helpers';
88export const STATUS_REJECTED = 'rejected' ;
99export const STATUS_LOADING = 'loading' ;
1010export const STATUS_RESOLVED = 'resolved' ;
11- export const DEFAULT_PATCH_TITLE = ` - Patch | Red Hat Insights` ;
1211
1312export const defaultCompoundSortValues = {
1413 operating_system : {
You can’t perform that action at this time.
0 commit comments