Skip to content

Commit

Permalink
Make Document title more descriptive
Browse files Browse the repository at this point in the history
  • Loading branch information
hasyed-akamai committed Dec 10, 2024
1 parent c5c96af commit b5ed848
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { debounce } from 'throttle-debounce';

import { ActionsPanel } from 'src/components/ActionsPanel/ActionsPanel';
import { ConfirmationDialog } from 'src/components/ConfirmationDialog/ConfirmationDialog';
import { DocumentTitleSegment } from 'src/components/DocumentTitle';
import { Hidden } from 'src/components/Hidden';
import { Table } from 'src/components/Table';
import { TableBody } from 'src/components/TableBody';
Expand Down Expand Up @@ -59,7 +60,6 @@ import type {
ObjectStorageObjectList,
} from '@linode/api-v4';
import type { InfiniteData } from '@tanstack/react-query';
import { DocumentTitleSegment } from 'src/components/DocumentTitle';

interface MatchParams {
bucketName: string;
Expand Down Expand Up @@ -379,7 +379,7 @@ export const BucketDetail = (props: Props) => {

return (
<>
<DocumentTitleSegment segment={bucketName} />
<DocumentTitleSegment segment={bucketName + ' | Bucket'} />;
<BucketBreadcrumb
bucketName={bucketName}
history={history}
Expand Down Expand Up @@ -441,7 +441,6 @@ export const BucketDetail = (props: Props) => {
</StyledTryAgainButton>
</StyledErrorFooter>
)}

{!hasNextPage && numOfDisplayedObjects >= 100 && (
<StyledFooter variant="subtitle2">
Showing all {numOfDisplayedObjects} items
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { CircleProgress } from '@linode/ui';
import * as React from 'react';
import { useHistory, useLocation, useParams } from 'react-router-dom';

import { DocumentTitleSegment } from 'src/components/DocumentTitle';
import { LandingHeader } from 'src/components/LandingHeader';
import { NotFound } from 'src/components/NotFound';
import { StackScript as _StackScript } from 'src/components/StackScript/StackScript';
Expand All @@ -20,7 +21,6 @@ import {

import type { StackScript } from '@linode/api-v4/lib/stackscripts';
import type { APIError } from '@linode/api-v4/lib/types';
import { DocumentTitleSegment } from 'src/components/DocumentTitle';

export const StackScriptsDetail = () => {
const { _hasGrant, _isRestrictedUser, profile } = useAccountManagement();
Expand Down Expand Up @@ -115,7 +115,7 @@ export const StackScriptsDetail = () => {

return (
<>
<DocumentTitleSegment segment={stackScript.label} />
<DocumentTitleSegment segment={stackScript.label + ' | StackScripts'} />
<LandingHeader
breadcrumbProps={{
crumbOverrides: [
Expand Down

0 comments on commit b5ed848

Please sign in to comment.