Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions console/src/components/scheduled-detail-table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,13 +134,13 @@
</span>
</DateTimeEdit>
{!item.paused_at && item.has_pending_events && (
<Tooltip>

Check warning on line 137 in console/src/components/scheduled-detail-table.tsx

View workflow job for this annotation

GitHub Actions / lint

Delete `····`
<TooltipTrigger asChild>

Check warning on line 138 in console/src/components/scheduled-detail-table.tsx

View workflow job for this annotation

GitHub Actions / lint

Delete `····`
<span className="inline-flex items-center gap-1 text-xs text-blue-600 dark:text-blue-400">

Check warning on line 139 in console/src/components/scheduled-detail-table.tsx

View workflow job for this annotation

GitHub Actions / lint

Delete `····`
<Loader2 className="h-3 w-3 animate-spin" />

Check warning on line 140 in console/src/components/scheduled-detail-table.tsx

View workflow job for this annotation

GitHub Actions / lint

Replace `····················································` with `················································`
</span>

Check warning on line 141 in console/src/components/scheduled-detail-table.tsx

View workflow job for this annotation

GitHub Actions / lint

Delete `····`
</TooltipTrigger>

Check warning on line 142 in console/src/components/scheduled-detail-table.tsx

View workflow job for this annotation

GitHub Actions / lint

Delete `····`
<TooltipContent>

Check warning on line 143 in console/src/components/scheduled-detail-table.tsx

View workflow job for this annotation

GitHub Actions / lint

Delete `····`
{t(
"scheduled_sending_tooltip",
"This message is scheduled to be sent out. It could take up to 1 minute to process.",
Expand Down Expand Up @@ -230,7 +230,7 @@
}

// Fetch scheduled schemas to get id→name mapping
const [schemasResult] = useResolver(
const [schemasResult, , reloadSchemas] = useResolver(
useCallback(async () => {
try {
const { data } = await client.get<{ results: ScheduledSchema[] }>(
Expand Down Expand Up @@ -312,7 +312,10 @@
)
}

await reloadScheduled()
// Creating with a new name registers a new schedule schema, so refresh
// the id→name map too — otherwise the new row falls back to showing its
// raw scheduled_id (a UUID) instead of the name the user just entered.
await Promise.all([reloadScheduled(), reloadSchemas()])
setIsCreateOpen(false)
scheduledForm.reset()
setNewScheduledData({})
Expand Down
Loading