File tree Expand file tree Collapse file tree 4 files changed +11
-1
lines changed
resources/CustomResourceDefinitions Expand file tree Collapse file tree 4 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 11import pluralize from 'pluralize' ;
22import { useContext , useEffect } from 'react' ;
33import { useSetAtom } from 'jotai' ;
4+ import { useTranslation } from 'react-i18next' ;
45
56import { usePrepareDetailsProps } from 'resources/helpers' ;
67import { ResourceDetails } from 'shared/components/ResourceDetails/ResourceDetails' ;
@@ -33,6 +34,8 @@ export const ExtensibilityDetailsCore = ({
3334 headerActions,
3435} ) => {
3536 const { t, widgetT, exists } = useGetTranslation ( ) ;
37+ const { t : tBusola } = useTranslation ( ) ;
38+
3639 const setResourcesConditions = useSetAtom ( resourcesConditionsAtom ) ;
3740 const {
3841 urlPath,
@@ -111,6 +114,7 @@ export const ExtensibilityDetailsCore = ({
111114 disableDelete = { disableDelete }
112115 resourceTitle = { resourceTitle }
113116 headerActions = { headerActions }
117+ windowTitle = { isModule ? tBusola ( 'kyma-modules.title' ) : null }
114118 customColumns = {
115119 Array . isArray ( header )
116120 ? header . map ( ( def , i ) => ( {
Original file line number Diff line number Diff line change @@ -13,17 +13,19 @@ import {
1313} from 'components/HelmReleases' ;
1414import { ResourcesList } from 'shared/components/ResourcesList/ResourcesList' ;
1515import { HelmReleaseStatus } from './HelmReleaseStatus' ;
16+ import { useWindowTitle } from 'shared/hooks/useWindowTitle' ;
1617
1718function HelmReleasesList ( ) {
1819 const { t } = useTranslation ( ) ;
20+ useWindowTitle ( t ( 'helm-releases.title' ) ) ;
21+
1922 const namespace = useAtomValue ( activeNamespaceIdAtom ) ;
2023 const { namespaceUrl } = useUrl ( ) ;
2124 const resourceUrl = ( entry ) => {
2225 return namespaceUrl ( `helm-releases/${ entry . releaseName } ` , {
2326 namespace : entry . namespace ,
2427 } ) ;
2528 } ;
26-
2729 const dataUrl =
2830 namespace === '-all-'
2931 ? `/api/v1/secrets`
Original file line number Diff line number Diff line change @@ -19,9 +19,12 @@ import { useFeature } from 'hooks/useFeature';
1919import { configFeaturesNames } from 'state/types' ;
2020import { CommunityModulesDeleteBoxContext } from 'components/Modules/community/components/CommunityModulesDeleteBox' ;
2121import { ProtectedResourceWarning } from 'shared/components/ProtectedResourcesButton' ;
22+ import { useWindowTitle } from 'shared/hooks/useWindowTitle' ;
2223
2324export default function ModulesList ( { namespaced } ) {
2425 const { t } = useTranslation ( ) ;
26+ useWindowTitle ( t ( 'kyma-modules.title' ) ) ;
27+
2528 const layoutState = useAtomValue ( columnLayoutAtom ) ;
2629 const { isEnabled : isCommunityModulesEnabled } = useFeature (
2730 configFeaturesNames . COMMUNITY_MODULES ,
Original file line number Diff line number Diff line change @@ -108,6 +108,7 @@ export default function CustomResource({ params }) {
108108 disableDelete = { isModule }
109109 isEntireListProtected = { isEntireListProtected }
110110 headerActions = { headerActions }
111+ windowTitle = { isModule ? t ( 'kyma-modules.title' ) : null }
111112 />
112113 ) ;
113114}
You can’t perform that action at this time.
0 commit comments