Skip to content

Commit f8fe4fb

Browse files
AlcoholicBubbledanielecalda
authored andcommitted
issue #2130: rename datasource scheduling listing action from Reroute to Reprocess failed messages
1 parent 2aca006 commit f8fe4fb

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

js-packages/admin-ui/src/pages/datasources/components/Sections/MonitoringTab.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ export function MonitoringTab({ id }: { id: string }) {
171171
<>
172172
<Button onClick={() => handleOpen("closeScheduling", item.node.id)}>Close</Button>
173173
<Button onClick={() => handleOpen("cancelScheduling", item.node.id)}>Cancel</Button>
174-
<Button onClick={() => handleOpen("rerouteScheduling", item.node.id)}>Reroute</Button>
174+
<Button onClick={() => handleOpen("rerouteScheduling", item.node.id)}>Reprocess failed messages</Button>
175175
<Button onClick={handleViewInfoClick}>View Info</Button>
176176
</>
177177
);
@@ -182,7 +182,9 @@ export function MonitoringTab({ id }: { id: string }) {
182182

183183
const handleOpen = (action: string, id: number) => {
184184
setSchedulingId(id);
185-
setModalMessage(`Do you want to ${action.replace("Scheduling", "").toLowerCase()} this scheduling?`);
185+
const actionLabel =
186+
action === "rerouteScheduling" ? "reprocess failed messages for" : action.replace("Scheduling", "").toLowerCase();
187+
setModalMessage(`Do you want to ${actionLabel} this scheduling?`);
186188
dataSourceInformationQuery.refetch();
187189
dataSourceSchedulers.refetch();
188190
setModalAction(action);

0 commit comments

Comments
 (0)