-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug fix in reset offset page (#1319)
* bug fix in reset offset page * Add onclick function for dryrun page * Disable save until all fields are entered * Incorporate review comment Signed-off-by: hemahg <[email protected]>
- Loading branch information
Showing
6 changed files
with
120 additions
and
28 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
...orized)/kafka/[kafkaId]/@activeBreadcrumb/consumer-groups/[groupId]/reset-offset/page.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { KafkaConsumerGroupMembersParams } from "@/app/[locale]/(authorized)/kafka/[kafkaId]/consumer-groups/[groupId]/KafkaConsumerGroupMembers.params"; | ||
import { BreadcrumbLink } from "@/components/Navigation/BreadcrumbLink"; | ||
import { BreadcrumbItem } from "@/libs/patternfly/react-core"; | ||
|
||
export default function ConsumerGroupsActiveBreadcrumb({ | ||
params: { groupId, kafkaId }, | ||
}: { | ||
params: KafkaConsumerGroupMembersParams; | ||
}) { | ||
return [ | ||
<BreadcrumbLink | ||
key={"cg"} | ||
href={`/kafka/${kafkaId}/consumer-groups`} | ||
showDivider={true} | ||
> | ||
Consumer groups | ||
</BreadcrumbLink>, | ||
<BreadcrumbItem key={"cgm"} showDivider={true} isActive={true}> | ||
{decodeURIComponent(groupId) === "+" ? <i>Empty Name</i> : groupId} | ||
</BreadcrumbItem>, | ||
]; | ||
} |
38 changes: 38 additions & 0 deletions
38
...ale]/(authorized)/kafka/[kafkaId]/@header/consumer-groups/[groupId]/reset-offset/page.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import { KafkaConsumerGroupMembersParams } from "@/app/[locale]/(authorized)/kafka/[kafkaId]/consumer-groups/[groupId]/KafkaConsumerGroupMembers.params"; | ||
import { AppHeader } from "@/components/AppHeader"; | ||
import { Suspense } from "react"; | ||
import { useTranslations } from "next-intl"; | ||
|
||
export default function Page({ | ||
params: { kafkaId, groupId }, | ||
}: { | ||
params: KafkaConsumerGroupMembersParams; | ||
}) { | ||
return ( | ||
<Suspense fallback={<Header params={{ kafkaId, groupId }} />}> | ||
<ConnectedAppHeader params={{ kafkaId, groupId }} /> | ||
</Suspense> | ||
); | ||
} | ||
|
||
async function ConnectedAppHeader({ | ||
params: { kafkaId, groupId }, | ||
}: { | ||
params: KafkaConsumerGroupMembersParams; | ||
}) { | ||
return <Header params={{ kafkaId, groupId }} />; | ||
} | ||
|
||
function Header({ | ||
params: { kafkaId, groupId }, | ||
}: { | ||
params: KafkaConsumerGroupMembersParams; | ||
}) { | ||
const t = useTranslations(); | ||
|
||
return ( | ||
<AppHeader | ||
title={decodeURIComponent(groupId) === "+" ? <i>Empty Name</i> : groupId} | ||
/> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters