Complete map refresh guards and fix the dashboard job embed
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user