Complete map refresh guards and fix the dashboard job embed

This commit is contained in:
2026-10-06 12:18:22 +05:00
parent 923abdc472
commit 5f43e97d32
11 changed files with 127 additions and 27 deletions

View File

@@ -136,7 +136,7 @@ export function DraftEditor({ id }: { id: string }) {
<div className="editor-navigation">
<Link href="/dashboard">← Your maps</Link>
<a href="#locations">Choose locations</a>
<a href="#map-tools">Map tools</a>
{!draft.parent_dataset_id && <a href="#map-tools">Map tools</a>}
</div>
<span className="badge">{draft.state}</span>
{draft.update_state && (
@@ -299,18 +299,20 @@ export function DraftEditor({ id }: { id: string }) {
</button>
</div>
)}
<div id="map-tools">
<MapRefresh
id={id}
disabled={busy || !editable || refreshing}
onQueued={() => {
setMessage(
"Map refresh queued. Keep this page open to follow progress.",
);
setVersion((v) => v + 1);
}}
/>
</div>
{!draft.parent_dataset_id && (
<div id="map-tools">
<MapRefresh
id={id}
disabled={busy || !editable || refreshing}
onQueued={() => {
setMessage(
"Map refresh queued. Keep this page open to follow progress.",
);
setVersion((v) => v + 1);
}}
/>
</div>
)}
{!draft.parent_dataset_id && (
<OwnerContributions
id={id}